From: Stéphane Graber Date: Thu, 3 Jan 2013 17:24:07 +0000 (-0500) Subject: Replace get_current_dir_name by getcwd X-Git-Tag: lxc-0.9.0.alpha3~1^2~65 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d2717c14d8bb06967a6817d7909a2ee87b523002;p=thirdparty%2Flxc.git 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 Acked-by: Serge E. Hallyn --- diff --git a/src/lxc/lxc_attach.c b/src/lxc/lxc_attach.c index e292bc4be..ba98d7363 100644 --- a/src/lxc/lxc_attach.c +++ b/src/lxc/lxc_attach.c @@ -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