]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
journal-remote-main: pass the right error variable
authorDavid Tardon <dtardon@redhat.com>
Tue, 7 May 2024 11:13:24 +0000 (13:13 +0200)
committerDavid Tardon <dtardon@redhat.com>
Tue, 7 May 2024 11:13:24 +0000 (13:13 +0200)
src/journal-remote/journal-remote-main.c

index 64f8125df3d3b080e21fffe6bbf3a72f33059002..34d4062d4a2b0df0c77a5c6ecda7b687fd9f7be2 100644 (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];
 }