diff options
author | Sami Kerola | 2012-07-15 10:17:53 +0200 |
---|---|---|
committer | Karel Zak | 2012-07-16 18:18:22 +0200 |
commit | add1b8afd0d836039d9adcc29f53ba6136a66b09 (patch) | |
tree | 1810f35135749e943b36c93cba296e3e917bed54 /sys-utils/switch_root.c | |
parent | utmpdump: use help and version output macros (diff) | |
download | kernel-qcow2-util-linux-add1b8afd0d836039d9adcc29f53ba6136a66b09.tar.gz kernel-qcow2-util-linux-add1b8afd0d836039d9adcc29f53ba6136a66b09.tar.xz kernel-qcow2-util-linux-add1b8afd0d836039d9adcc29f53ba6136a66b09.zip |
translation: unify stat error messages
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'sys-utils/switch_root.c')
-rw-r--r-- | sys-utils/switch_root.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys-utils/switch_root.c b/sys-utils/switch_root.c index 4ff3bff8f..bcd801d5f 100644 --- a/sys-utils/switch_root.c +++ b/sys-utils/switch_root.c @@ -62,7 +62,7 @@ static int recursiveRemove(int fd) dfd = dirfd(dir); if (fstat(dfd, &rb)) { - warn(_("failed to stat directory")); + warn(_("stat failed")); goto done; } @@ -85,7 +85,7 @@ static int recursiveRemove(int fd) struct stat sb; if (fstatat(dfd, d->d_name, &sb, AT_SYMLINK_NOFOLLOW)) { - warn(_("failed to stat %s"), d->d_name); + warn(_("stat failed %s"), d->d_name); continue; } @@ -125,7 +125,7 @@ static int switchroot(const char *newroot) struct stat newroot_stat, sb; if (stat(newroot, &newroot_stat) != 0) { - warn(_("failed to stat directory %s"), newroot); + warn(_("stat failed %s"), newroot); return -1; } |