lxc_unshare: fix network device handling

parent ecd92dff
......@@ -416,7 +416,7 @@ int main(int argc, char *argv[])
if (lpid == 0) {
char buf[256];
ret = snprintf(buf, 256, "%d", lpid);
ret = snprintf(buf, 256, "%d", pid);
if (ret < 0 || ret >= 256)
_exit(EXIT_FAILURE);
......@@ -425,8 +425,7 @@ int main(int argc, char *argv[])
}
if (wait_for_pid(lpid) != 0)
SYSERROR("Could not move interface \"%s\" into container %d",
ifname, lpid);
SYSERROR("Could not move interface \"%s\" into container %d", ifname, lpid);
}
free_ifname_list();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment