summaryrefslogtreecommitdiffstats
path: root/lib/path.c
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/path.c
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/path.c')
-rw-r--r--lib/path.c4
1 files changed, 2 insertions, 2 deletions
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;
}