From: Karel Zak Date: Tue, 25 Aug 2015 13:34:09 +0000 (+0200) Subject: fallocate: fix error message X-Git-Tag: v2.27~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=049bfa066c8063585a8b685a059dd2a19f25b99c;p=thirdparty%2Futil-linux.git fallocate: fix error message FALLOC_FL_KEEP_SIZE flag is generic and used in many situations, "-n" in the error message does not make sense. Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1146152 Signed-off-by: Karel Zak --- diff --git a/sys-utils/fallocate.c b/sys-utils/fallocate.c index 0cf32ecb36..4f2f74ea86 100644 --- a/sys-utils/fallocate.c +++ b/sys-utils/fallocate.c @@ -123,7 +123,7 @@ static void xfallocate(int fd, int mode, off_t offset, off_t length) */ if (error < 0) { if ((mode & FALLOC_FL_KEEP_SIZE) && errno == EOPNOTSUPP) - errx(EXIT_FAILURE, _("keep size mode (-n option) unsupported")); + errx(EXIT_FAILURE, _("fallocate failed: keep size mode is unsupported")); err(EXIT_FAILURE, _("fallocate failed")); } }