summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2004-05-20 11:35:40 +0000
committerJim Meyering <jim@meyering.net>2004-05-20 11:35:40 +0000
commit84b82a4aa2cb56834cab1c6ce443e65b30640135 (patch)
treebd006dc9338f616e8d1f96b73489a3147154cebb /src
parenta439f413522de7c236bc20a08271783b3768ba71 (diff)
downloadcoreutils-84b82a4aa2cb56834cab1c6ce443e65b30640135.tar.xz
Use translatable diagnostics, e.g.
change "%s: remove" to _("%s: failed to remove") and change "%s: close" to _("%s: failed to close").
Diffstat (limited to 'src')
-rw-r--r--src/shred.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/shred.c b/src/shred.c
index 1e438b620..8208ca6b5 100644
--- a/src/shred.c
+++ b/src/shred.c
@@ -789,7 +789,7 @@ dosync (int fd, char const *qname)
err = errno;
if (err != EINVAL)
{
- error (0, err, "%s: fdatasync", qname);
+ error (0, err, _("%s: fdatasync failed"), qname);
errno = err;
return -1;
}
@@ -800,7 +800,7 @@ dosync (int fd, char const *qname)
err = errno;
if (err != EINVAL)
{
- error (0, err, "%s: fsync", qname);
+ error (0, err, _("%s: fsync failed"), qname);
errno = err;
return -1;
}
@@ -924,7 +924,7 @@ dopass (int fd, char const *qname, off_t *sizep, int type,
write_error = true;
continue;
}
- error (0, errno, "%s: lseek", qname);
+ error (0, errno, _("%s: lseek failed"), qname);
}
return -1;
}
@@ -1226,7 +1226,7 @@ do_wipefd (int fd, char const *qname, struct isaac_state *s,
if (fstat (fd, &st))
{
- error (0, errno, "%s: fstat", qname);
+ error (0, errno, _("%s: fstat failed"), qname);
return false;
}
@@ -1335,7 +1335,7 @@ wipefd (int fd, char const *qname, struct isaac_state *s,
if (fd_flags < 0)
{
- error (0, errno, "%s: fcntl", qname);
+ error (0, errno, _("%s: fcntl failed"), qname);
return false;
}
if (fd_flags & O_APPEND)
@@ -1463,7 +1463,7 @@ wipename (char *oldname, char const *qoldname, struct Options const *flags)
}
if (unlink (oldname) != 0)
{
- error (0, errno, "%s: remove", qoldname);
+ error (0, errno, _("%s: failed to remove"), qoldname);
ok = false;
}
else if (flags->verbose)
@@ -1474,7 +1474,7 @@ wipename (char *oldname, char const *qoldname, struct Options const *flags)
ok = false;
if (close (dir_fd) != 0)
{
- error (0, errno, "%s: close", qdir);
+ error (0, errno, _("%s: failed to close"), qdir);
ok = false;
}
}
@@ -1532,14 +1532,14 @@ wipefile (char *name, char const *qname,
}
if (fd < 0)
{
- error (0, errno, "%s", qname);
+ error (0, errno, _("%s: failed to open for writing"), qname);
return false;
}
ok = do_wipefd (fd, qname, s, flags);
if (close (fd) != 0)
{
- error (0, errno, "%s: close", qname);
+ error (0, errno, _("%s: failed to close"), qname);
ok = false;
}
if (ok && flags->remove_file)