Skip to content

Commit ba72801

Browse files
committed
nspawn: use correct error variable when logging errors returned by send_one_fd()
1 parent 04c84cd commit ba72801

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nspawn/nspawn.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3438,7 +3438,7 @@ static int outer_child(
34383438

34393439
l = send_one_fd(notify_socket, fd, 0);
34403440
if (l < 0)
3441-
return log_error_errno(errno, "Failed to send notify fd: %m");
3441+
return log_error_errno(l, "Failed to send notify fd: %m");
34423442

34433443
pid_socket = safe_close(pid_socket);
34443444
uuid_socket = safe_close(uuid_socket);

0 commit comments

Comments
 (0)