]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
dissect: Fix logging in (with)
authorDaanDeMeyer <daan.j.demeyer@gmail.com>
Fri, 26 Dec 2025 21:36:08 +0000 (22:36 +0100)
committerDaan De Meyer <daan@amutable.com>
Thu, 12 Feb 2026 08:43:07 +0000 (09:43 +0100)
src/dissect/dissect.c

index b6b122afb74705a80d189233df0da9681f2c64d8..bb0a0a16efbfc5d5cd391b341e973eaa7658f751 100644 (file)
@@ -1785,7 +1785,7 @@ static int action_with(DissectedImage *m, LoopDevice *d) {
                         return log_error_errno(r, "Failed to unlock loopback block device: %m");
         }
 
-        rcode = pidref_safe_fork("(with)", FORK_CLOSE_ALL_FDS|FORK_LOG|FORK_WAIT, /* ret= */ NULL);
+        rcode = pidref_safe_fork("(with)", FORK_CLOSE_ALL_FDS|FORK_LOG|FORK_REOPEN_LOG|FORK_WAIT, /* ret= */ NULL);
         if (rcode == 0) {
                 /* Child */