]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
coredump: return correct error variable
authorMichal Sekletár <msekleta@redhat.com>
Tue, 29 Oct 2024 17:41:55 +0000 (17:41 +0000)
committerLuca Boccassi <luca.boccassi@gmail.com>
Wed, 30 Oct 2024 12:38:27 +0000 (12:38 +0000)
src/coredump/coredump.c

index 72e964aa08885e8a912cb10730ef3321bf6cc857..209d2548c24499891ade1d2abd5fd3321d3e071c 100644 (file)
@@ -809,7 +809,7 @@ static int attach_mount_tree(int mount_tree_fd) {
                                         .propagation = MS_SLAVE,
                                 }, sizeof(struct mount_attr));
         if (r < 0)
-                return log_warning_errno(r, "Failed to change properties mount tree: %m");
+                return log_warning_errno(errno, "Failed to change properties of mount tree: %m");
 
         r = move_mount(mount_tree_fd, "", -EBADF, MOUNT_TREE_ROOT, MOVE_MOUNT_F_EMPTY_PATH);
         if (r < 0)