summaryrefslogtreecommitdiffstats
path: root/disk-utils/fsck.cramfs.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 /disk-utils/fsck.cramfs.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 'disk-utils/fsck.cramfs.c')
-rw-r--r--disk-utils/fsck.cramfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/disk-utils/fsck.cramfs.c b/disk-utils/fsck.cramfs.c
index ac378307e..d64e2bed9 100644
--- a/disk-utils/fsck.cramfs.c
+++ b/disk-utils/fsck.cramfs.c
@@ -143,7 +143,7 @@ static void test_super(int *start, size_t * length)
fd = open(filename, O_RDONLY);
if (fd < 0)
- err(FSCK_EX_ERROR, _("open failed: %s"), filename);
+ err(FSCK_EX_ERROR, _("cannot open %s"), filename);
if (S_ISBLK(st.st_mode)) {
unsigned long long bytes;
@@ -495,7 +495,7 @@ static void do_file(char *path, struct cramfs_inode *i)
if (opt_extract) {
fd = open(path, O_WRONLY | O_CREAT | O_TRUNC, i->mode);
if (fd < 0)
- err(FSCK_EX_ERROR, _("open failed: %s"), path);
+ err(FSCK_EX_ERROR, _("cannot open %s"), path);
}
if (i->size)
do_uncompress(path, fd, offset, i->size);