summaryrefslogtreecommitdiffstats
path: root/src/nspawn/nspawn.c
diff options
context:
space:
mode:
authorFranck Bui <fbui@suse.com>2019-06-06 15:58:14 +0200
committerFranck Bui <fbui@suse.com>2019-06-18 07:54:51 +0200
commitba72801d660a02429b6a0658db2dadfbe25bde04 (patch)
tree59ad31856de3ed3a71ffcca17e731aea963fd1e5 /src/nspawn/nspawn.c
parentnamespace-util: make use of TAKE_FD() (diff)
downloadsystemd-ba72801d660a02429b6a0658db2dadfbe25bde04.tar.xz
systemd-ba72801d660a02429b6a0658db2dadfbe25bde04.zip
nspawn: use correct error variable when logging errors returned by send_one_fd()
Diffstat (limited to '')
-rw-r--r--src/nspawn/nspawn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c
index 25184e11e9..3713daa1fb 100644
--- a/src/nspawn/nspawn.c
+++ b/src/nspawn/nspawn.c
@@ -3438,7 +3438,7 @@ static int outer_child(
l = send_one_fd(notify_socket, fd, 0);
if (l < 0)
- return log_error_errno(errno, "Failed to send notify fd: %m");
+ return log_error_errno(l, "Failed to send notify fd: %m");
pid_socket = safe_close(pid_socket);
uuid_socket = safe_close(uuid_socket);