From 6a0c1de213cb8475ee435ff216f4037080926378 Mon Sep 17 00:00:00 2001 From: kraai Date: Wed, 12 Jul 2000 17:02:35 +0000 Subject: Always report the applet name when doing error reporting. git-svn-id: svn://busybox.net/trunk/busybox@831 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- coreutils/chroot.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'coreutils/chroot.c') diff --git a/coreutils/chroot.c b/coreutils/chroot.c index 1c64e08a9..95aed3d17 100644 --- a/coreutils/chroot.c +++ b/coreutils/chroot.c @@ -47,8 +47,7 @@ int chroot_main(int argc, char **argv) argv++; if (chroot(*argv) || (chdir("/"))) { - fatalError("chroot: cannot change root directory to %s: %s\n", - *argv, strerror(errno)); + fatalError("cannot change root directory to %s: %s\n", *argv, strerror(errno)); } argc--; @@ -62,8 +61,7 @@ int chroot_main(int argc, char **argv) prog = "/bin/sh"; execlp(prog, prog, NULL); } - fatalError("chroot: cannot execute %s: %s\n", - prog, strerror(errno)); + fatalError("cannot execute %s: %s\n", prog, strerror(errno)); } -- cgit v1.2.3-55-g6feb