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

index 2ecc9dd856159ffdfd6b8e3ddced44a213a4877c..86bd7978968b715d6e45ac94e915fa37c422d7e8 100644 (file)
@@ -2896,7 +2896,7 @@ static int setup_ephemeral(
                  */
                 r = chattr_fd(fd, FS_NOCOW_FL, FS_NOCOW_FL, NULL);
                 if (r < 0)
-                        log_debug_errno(fd, "Failed to disable copy-on-write for %s, ignoring: %m", new_root);
+                        log_debug_errno(r, "Failed to disable copy-on-write for %s, ignoring: %m", new_root);
         } else {
                 assert(*root_directory);