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