]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
mkfs.cramfs: clearer error message, "cannot close" instead of "closing"
authorBenno Schulenberg <bensberg@justemail.net>
Wed, 10 Aug 2011 18:55:48 +0000 (20:55 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 15 Aug 2011 13:49:18 +0000 (15:49 +0200)
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
disk-utils/mkfs.cramfs.c

index 9bb9153d8913c046ebf5d8e7c55b223a1d8d627b..519363419c4952f50310d68cbd8422dc4992ba81 100644 (file)
@@ -665,7 +665,7 @@ static unsigned int write_file(char *file, char *base, unsigned int offset)
        memcpy(base + offset, buf, image_length);
        munmap(buf, image_length);
        if (close (fd) < 0)
-               err(MKFS_ERROR, _("closing file %s"), file);
+               err(MKFS_ERROR, _("cannot close file %s"), file);
        /* Pad up the image_length to a 4-byte boundary */
        while (image_length & 3) {
                *(base + offset + image_length) = '\0';