From add1b8afd0d836039d9adcc29f53ba6136a66b09 Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Sun, 15 Jul 2012 10:17:53 +0200 Subject: translation: unify stat error messages Signed-off-by: Sami Kerola --- sys-utils/switch_root.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys-utils/switch_root.c') 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; } -- cgit v1.2.3-55-g7522