From be84cd4ef66f8956eb4c7ff0542fd1ba823a70e7 Mon Sep 17 00:00:00 2001 From: Matt Kraai Date: Wed, 12 Jul 2000 17:02:35 +0000 Subject: Always report the applet name when doing error reporting. --- 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