1
0
mirror of https://github.com/systemd/systemd synced 2024-07-01 07:34:28 +00:00

journal-remote-main: pass the right error variable

This commit is contained in:
David Tardon 2024-05-07 13:13:24 +02:00
parent cc4482ee23
commit 47eab95ea8

View File

@ -108,7 +108,7 @@ static int spawn_child(const char* child, char** argv) {
r = fd_nonblock(fd[0], true);
if (r < 0)
log_warning_errno(errno, "Failed to set child pipe to non-blocking: %m");
log_warning_errno(r, "Failed to set child pipe to non-blocking: %m");
return fd[0];
}