]> git.proxmox.com Git - mirror_lxc.git/commitdiff
Replace get_current_dir_name by getcwd
authorStéphane Graber <stgraber@ubuntu.com>
Thu, 3 Jan 2013 17:24:07 +0000 (12:24 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Wed, 9 Jan 2013 15:10:13 +0000 (10:10 -0500)
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>
src/lxc/lxc_attach.c

index e292bc4bed68546d09a998bc24daab8a813ca547..ba98d73631e6ccced10a3fcbd6264f23cee59e32 100644 (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