From 88710976fe309aeb8e026eabc33eca26eeb8769d Mon Sep 17 00:00:00 2001
From: David Tardon <dtardon@redhat.com>
Date: Tue, 7 May 2024 13:13:24 +0200
Subject: [PATCH 0592/1160] journal-remote-main: pass the right error variable
(cherry picked from commit 47eab95ea813fdeee686ca720287b7fe4189b2d4)
src/journal-remote/journal-remote-main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -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];
}
--
2.33.0