Replace get_current_dir_name by getcwd

get_current_dir_name appears to be specific to glibc. Replace that call
by an equivalent getcwd call.

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
This commit is contained in:
Stéphane Graber 2013-01-03 12:24:07 -05:00
parent 20d2e91bd3
commit d2717c14d8

View File

@ -164,7 +164,7 @@ int main(int argc, char *argv[])
}
}
curdir = get_current_dir_name();
curdir = getcwd(NULL, 0);
/* determine which namespaces the container was created with
* by asking lxc-start