From d2717c14d8bb06967a6817d7909a2ee87b523002 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Graber?= Date: Thu, 3 Jan 2013 12:24:07 -0500 Subject: [PATCH] Replace get_current_dir_name by getcwd MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- src/lxc/lxc_attach.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.2