diff --git a/libcontainer/nsenter/nsexec.c b/libcontainer/nsenter/nsexec.c index c80f8e60..307cef45 100644 --- a/libcontainer/nsenter/nsexec.c +++ b/libcontainer/nsenter/nsexec.c @@ -394,7 +394,7 @@ void join_namespaces(char *nslist) fd = open(path, O_RDONLY); if (fd < 0) - bail("failed to open %s", namespace); + bail("failed to open %s", path); ns->fd = fd; ns->ns = nsflag(namespace);