diff options
author | Benno Schulenberg | 2015-01-29 21:21:48 +0100 |
---|---|---|
committer | Karel Zak | 2015-02-02 11:27:10 +0100 |
commit | fc14ceba5e545a0e0f61e7a9fe562c79671258ef (patch) | |
tree | d89308fcbb2a9b4d23f64c0ab191c61f0d9aa9d6 /text-utils | |
parent | docs: mention nice(1) in renice(1) manual page (diff) | |
download | kernel-qcow2-util-linux-fc14ceba5e545a0e0f61e7a9fe562c79671258ef.tar.gz kernel-qcow2-util-linux-fc14ceba5e545a0e0f61e7a9fe562c79671258ef.tar.xz kernel-qcow2-util-linux-fc14ceba5e545a0e0f61e7a9fe562c79671258ef.zip |
textual: grammarize and harmonize the stat error message
The message "stat failed %s" seems to say that stat() failed to
do something, or failed to pass a test, but of course it means
that the statting of something failed. So say so. Also make
two very similar messages equal to this one.
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Diffstat (limited to 'text-utils')
-rw-r--r-- | text-utils/more.c | 2 | ||||
-rw-r--r-- | text-utils/tailf.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/text-utils/more.c b/text-utils/more.c index 94b045506..4602cba97 100644 --- a/text-utils/more.c +++ b/text-utils/more.c @@ -595,7 +595,7 @@ FILE *checkf(register char *fs, int *clearfirst) fflush(stdout); if (clreol) cleareol(); - warn(_("stat failed %s"), fs); + warn(_("stat of %s failed"), fs); return ((FILE *)NULL); } if ((stbuf.st_mode & S_IFMT) == S_IFDIR) { diff --git a/text-utils/tailf.c b/text-utils/tailf.c index 6adb05037..38df99f6f 100644 --- a/text-utils/tailf.c +++ b/text-utils/tailf.c @@ -98,7 +98,7 @@ roll_file(const char *filename, off_t *size) err(EXIT_FAILURE, _("cannot open %s"), filename); if (fstat(fd, &st) == -1) - err(EXIT_FAILURE, _("stat failed %s"), filename); + err(EXIT_FAILURE, _("stat of %s failed"), filename); if (st.st_size == *size) { close(fd); @@ -278,7 +278,7 @@ int main(int argc, char **argv) filename = argv[optind]; if (stat(filename, &st) != 0) - err(EXIT_FAILURE, _("stat failed %s"), filename); + err(EXIT_FAILURE, _("stat of %s failed"), filename); size = st.st_size;; tailf(filename, lines); |