From 2f849d36e02babe508b691f732cde65e52ef6cab Mon Sep 17 00:00:00 2001
From: David Tardon <dtardon@redhat.com>
Date: Tue, 7 May 2024 13:19:42 +0200
Subject: [PATCH 0595/1160] exec-invoke: pass the right error variable
(cherry picked from commit 6400084caa758677444354eae552ef5415ba4675)
src/core/exec-invoke.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -2934,7 +2934,7 @@ static int setup_ephemeral(const ExecContext *context, ExecRuntime *runtime) {
*/
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", runtime->ephemeral_copy);
+ log_debug_errno(r, "Failed to disable copy-on-write for %s, ignoring: %m", runtime->ephemeral_copy);
}
r = send_one_fd(runtime->ephemeral_storage_socket[1], fd, MSG_DONTWAIT);
--
2.33.0