From: David Tardon Date: Tue, 7 May 2024 11:19:42 +0000 (+0200) Subject: exec-invoke: pass the right error variable X-Git-Tag: v256-rc2~83^2~14 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6400084caa758677444354eae552ef5415ba4675;p=thirdparty%2Fsystemd.git exec-invoke: pass the right error variable --- diff --git a/src/core/exec-invoke.c b/src/core/exec-invoke.c index 2ecc9dd8561..86bd7978968 100644 --- a/src/core/exec-invoke.c +++ b/src/core/exec-invoke.c @@ -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);