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 /term-utils | |
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 'term-utils')
-rw-r--r-- | term-utils/script.c | 6 | ||||
-rw-r--r-- | term-utils/scriptreplay.c | 4 | ||||
-rw-r--r-- | term-utils/wall.c | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/term-utils/script.c b/term-utils/script.c index 5935b8516..8d7ab65f0 100644 --- a/term-utils/script.c +++ b/term-utils/script.c @@ -205,7 +205,7 @@ main(int argc, char **argv) { case 't': if (optarg) if ((timingfd = fopen(optarg, "w")) == NULL) - err(EXIT_FAILURE, _("cannot open timing file %s"), optarg); + err(EXIT_FAILURE, _("cannot open %s"), optarg); tflg = 1; break; case 'V': @@ -230,7 +230,7 @@ main(int argc, char **argv) { die_if_link(fname); } if ((fscript = fopen(fname, aflg ? "a" : "w")) == NULL) { - warn(_("open failed: %s"), fname); + warn(_("cannot open %s"), fname); fail(); } @@ -557,7 +557,7 @@ getslave(void) { line[strlen("/dev/")] = 't'; slave = open(line, O_RDWR); if (slave < 0) { - warn(_("open failed: %s"), line); + warn(_("cannot open %s"), line); fail(); } tcsetattr(slave, TCSANOW, &tt); diff --git a/term-utils/scriptreplay.c b/term-utils/scriptreplay.c index 91c55c3c7..9aa4783c0 100644 --- a/term-utils/scriptreplay.c +++ b/term-utils/scriptreplay.c @@ -194,10 +194,10 @@ main(int argc, char *argv[]) tfile = fopen(tname, "r"); if (!tfile) - err(EXIT_FAILURE, _("cannot open timing file %s"), tname); + err(EXIT_FAILURE, _("cannot open %s"), tname); sfile = fopen(sname, "r"); if (!sfile) - err(EXIT_FAILURE, _("cannot open typescript file %s"), sname); + err(EXIT_FAILURE, _("cannot open %s"), sname); /* ignore the first typescript line */ while((c = fgetc(sfile)) != EOF && c != '\n'); diff --git a/term-utils/wall.c b/term-utils/wall.c index 1f44be4c7..30324aa85 100644 --- a/term-utils/wall.c +++ b/term-utils/wall.c @@ -244,7 +244,7 @@ makemsg(char *fname, size_t *mbufsize, int print_banner) fname); if (!freopen(fname, "r", stdin)) - err(EXIT_FAILURE, _("cannot open file %s"), fname); + err(EXIT_FAILURE, _("cannot open %s"), fname); } while (fgets(lbuf, line_max, stdin)) { |