diff options
author | Sami Kerola | 2012-07-15 10:39:57 +0200 |
---|---|---|
committer | Karel Zak | 2012-07-16 18:18:22 +0200 |
commit | 289dcc90234680063a336925a99d1ef04e97cbda (patch) | |
tree | cb8656c16143daa406ea9d706406ca12d94d89d3 /login-utils/utmpdump.c | |
parent | translation: unify stat error messages (diff) | |
download | kernel-qcow2-util-linux-289dcc90234680063a336925a99d1ef04e97cbda.tar.gz kernel-qcow2-util-linux-289dcc90234680063a336925a99d1ef04e97cbda.tar.xz kernel-qcow2-util-linux-289dcc90234680063a336925a99d1ef04e97cbda.zip |
translation: unify file open error messages
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'login-utils/utmpdump.c')
-rw-r--r-- | login-utils/utmpdump.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/login-utils/utmpdump.c b/login-utils/utmpdump.c index d907e0207..cb850af13 100644 --- a/login-utils/utmpdump.c +++ b/login-utils/utmpdump.c @@ -115,7 +115,7 @@ static void roll_file(const char *filename, off_t *size) off_t pos; if (!(fp = fopen(filename, "r"))) - err(EXIT_FAILURE, _("%s: open failed"), filename); + err(EXIT_FAILURE, _("cannot open %s"), filename); if (fstat(fileno(fp), &st) == -1) err(EXIT_FAILURE, _("%s: stat failed"), filename); @@ -340,7 +340,7 @@ int main(int argc, char **argv) filename = argv[optind]; fp = fopen(filename, "r"); if (!fp) - err(EXIT_FAILURE, _("%s: open failed"), filename); + err(EXIT_FAILURE, _("cannot open %s"), filename); } else { if (follow) errx(EXIT_FAILURE, _("following standard input is unsupported")); |