]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
fsck.cramfs: fix error message
authorSamanta Navarro <ferivoz@riseup.net>
Thu, 26 Jan 2023 11:55:33 +0000 (11:55 +0000)
committerSamanta Navarro <ferivoz@riseup.net>
Thu, 26 Jan 2023 11:55:33 +0000 (11:55 +0000)
The error message for a failing chmod call contains chown as reason.
Fix this by stating that chmod failed.

Signed-off-by: Samanta Navarro <ferivoz@riseup.net>
disk-utils/fsck.cramfs.c

index 7503fae2fbb137c90bd06e61886eef8f56719eb8..042a8c41e507ee658572c6606bdc82206658ba4c 100644 (file)
@@ -434,7 +434,7 @@ static void change_file_status(char *path, struct cramfs_inode *i)
                if (S_ISLNK(i->mode))
                        return;
                if (((S_ISUID | S_ISGID) & i->mode) && chmod(path, i->mode) < 0)
-                       err(FSCK_EX_ERROR, _("chown failed: %s"), path);
+                       err(FSCK_EX_ERROR, _("chmod failed: %s"), path);
        }
        if (S_ISLNK(i->mode))
                return;