From d3be47c483b9e8a5b773b48d18c99b4256b17c70 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Fri, 16 Jun 2017 12:10:04 -0400 Subject: nspawn: send_one_fd() uses the "return -errno" convention, not errno --- src/nspawn/nspawn.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c index f3e27f04f5..be0dc5e86b 100644 --- a/src/nspawn/nspawn.c +++ b/src/nspawn/nspawn.c @@ -3174,9 +3174,9 @@ static int outer_child( return -EIO; } - l = send_one_fd(notify_socket, fd, 0); - if (l < 0) - return log_error_errno(errno, "Failed to send notify fd: %m"); + r = send_one_fd(notify_socket, fd, 0); + if (r < 0) + return log_error_errno(r, "Failed to send notify fd: %m"); pid_socket = safe_close(pid_socket); uuid_socket = safe_close(uuid_socket); -- cgit v1.2.3-54-g00ecf