]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
losetup: improve "sector boundary" warning
authorKarel Zak <kzak@redhat.com>
Tue, 9 Jan 2024 12:05:30 +0000 (13:05 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 9 Jan 2024 12:05:30 +0000 (13:05 +0100)
Fixes: https://github.com/util-linux/util-linux/issues/2689
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/losetup.c

index 7233adf1ca6ef8ce6262822455fff74547024575..7134542c4c25d3e2becf2473fec1969228757f78 100644 (file)
@@ -530,8 +530,8 @@ static void warn_size(const char *filename, uint64_t size, uint64_t offset, int
                        "may be useless or invisible for system tools."),
                        filename);
        else if (size % 512)
-               warnx(_("%s: Warning: file does not fit into a 512-byte sector; "
-                       "the end of the file will be ignored."),
+               warnx(_("%s: Warning: file does not end on a 512-byte sector boundary; "
+                       "the remaining end of the file will be ignored."),
                        filename);
 }