diff options
author | Franck Bui <fbui@suse.com> | 2019-06-06 15:58:14 +0200 |
---|---|---|
committer | Franck Bui <fbui@suse.com> | 2019-06-18 07:54:51 +0200 |
commit | ba72801d660a02429b6a0658db2dadfbe25bde04 (patch) | |
tree | 59ad31856de3ed3a71ffcca17e731aea963fd1e5 /src/nspawn/nspawn.c | |
parent | namespace-util: make use of TAKE_FD() (diff) | |
download | systemd-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.c | 2 |
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); |