summaryrefslogtreecommitdiffstats
path: root/src/journal-remote
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2024-05-07 13:13:24 +0200
committerDavid Tardon <dtardon@redhat.com>2024-05-07 13:13:24 +0200
commit47eab95ea813fdeee686ca720287b7fe4189b2d4 (patch)
treeb778c7f534e25fa51d321f2155cd3683926a0cbe /src/journal-remote
parentdiscover-image: pass the right error variable (diff)
downloadsystemd-47eab95ea813fdeee686ca720287b7fe4189b2d4.tar.xz
systemd-47eab95ea813fdeee686ca720287b7fe4189b2d4.zip
journal-remote-main: pass the right error variable
Diffstat (limited to 'src/journal-remote')
-rw-r--r--src/journal-remote/journal-remote-main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal-remote/journal-remote-main.c b/src/journal-remote/journal-remote-main.c
index 64f8125df3..34d4062d4a 100644
--- a/src/journal-remote/journal-remote-main.c
+++ b/src/journal-remote/journal-remote-main.c
@@ -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];
}