diff options
Diffstat (limited to 'sys-utils/fallocate.c')
| -rw-r--r-- | sys-utils/fallocate.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys-utils/fallocate.c b/sys-utils/fallocate.c index ff0f9e6e1..0e143166c 100644 --- a/sys-utils/fallocate.c +++ b/sys-utils/fallocate.c @@ -61,8 +61,8 @@ static void __attribute__((__noreturn__)) usage(FILE *out) fputs(USAGE_OPTIONS, out); fputs(_(" -n, --keep-size don't modify the length of the file\n" " -p, --punch-hole punch holes in the file\n" - " -o, --offset <num> offset of the allocation, in bytes\n" - " -l, --length <num> length of the allocation, in bytes\n"), out); + " -o, --offset <num> offset of the (de)allocation, in bytes\n" + " -l, --length <num> length of the (de)allocation, in bytes\n"), out); fputs(USAGE_SEPARATOR, out); fputs(USAGE_HELP, out); fputs(USAGE_VERSION, out); @@ -168,6 +168,7 @@ int main(int argc, char **argv) err(EXIT_FAILURE, _("%s: fallocate failed"), fname); } - close(fd); + if (close_fd(fd) != 0) + err(EXIT_FAILURE, _("write failed: %s"), fname); return EXIT_SUCCESS; } |
