summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSami Kerola2012-07-15 10:39:57 +0200
committerKarel Zak2012-07-16 18:18:22 +0200
commit289dcc90234680063a336925a99d1ef04e97cbda (patch)
treecb8656c16143daa406ea9d706406ca12d94d89d3 /lib
parenttranslation: unify stat error messages (diff)
downloadkernel-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 'lib')
-rw-r--r--lib/at.c2
-rw-r--r--lib/path.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/at.c b/lib/at.c
index 062a10f1b..bbce51630 100644
--- a/lib/at.c
+++ b/lib/at.c
@@ -116,7 +116,7 @@ int main(int argc, char *argv[])
dir = opendir(dirname);
if (!dir)
- err(EXIT_FAILURE, "%s: open failed", dirname);
+ err(EXIT_FAILURE, "cannot open %s", dirname);
while ((d = readdir(dir))) {
struct stat st;
diff --git a/lib/path.c b/lib/path.c
index 0d4d39135..8437c0220 100644
--- a/lib/path.c
+++ b/lib/path.c
@@ -55,7 +55,7 @@ path_vfopen(const char *mode, int exit_on_error, const char *path, va_list ap)
f = fopen(p, mode);
if (!f && exit_on_error)
- err(EXIT_FAILURE, _("error: cannot open %s"), p);
+ err(EXIT_FAILURE, _("cannot open %s"), p);
return f;
}
@@ -67,7 +67,7 @@ path_vopen(int flags, const char *path, va_list ap)
fd = open(p, flags);
if (fd == -1)
- err(EXIT_FAILURE, _("error: cannot open %s"), p);
+ err(EXIT_FAILURE, _("cannot open %s"), p);
return fd;
}