nspawn: add proper error message if setns() on network namespace fd fails

Addresses: https://github.com/systemd/systemd/pull/10589#issuecomment-434670595
This commit is contained in:
Lennart Poettering
2018-10-31 18:07:30 +01:00
parent fc03c53653
commit e2d39e549f
+1 -1
View File
@@ -3148,7 +3148,7 @@ static int outer_child(
if (arg_network_namespace_path) {
r = namespace_enter(-1, -1, netns_fd, -1, -1);
if (r < 0)
return r;
return log_error_errno(r, "Failed to join network namespace: %m");
}
r = inner_child(barrier, directory, secondary, kmsg_socket, rtnl_socket, fds);