projects
/
platform
/
upstream
/
coreutils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
maint: improve error messages upon failed read, write, access, close
[platform/upstream/coreutils.git]
/
src
/
head.c
diff --git
a/src/head.c
b/src/head.c
index
306c1b8
..
d79d5f7
100644
(file)
--- a/
src/head.c
+++ b/
src/head.c
@@
-859,7
+859,7
@@
head_file (const char *filename, uintmax_t n_units, bool count_lines,
ok = head (filename, fd, n_units, count_lines, elide_from_end);
if (!is_stdin && close (fd) != 0)
{
- error (0, errno, _("
closing
%s"), quote (filename));
+ error (0, errno, _("
failed to close
%s"), quote (filename));
return false;
}
return ok;