summaryrefslogtreecommitdiff
path: root/chroot.c
diff options
context:
space:
mode:
authorMatt Kraai2000-07-12 17:02:35 +0000
committerMatt Kraai2000-07-12 17:02:35 +0000
commitbe84cd4ef66f8956eb4c7ff0542fd1ba823a70e7 (patch)
tree088bc5b6e06d693ad8ca3eba078c0f3a8e302a24 /chroot.c
parente58771e73c0d8589a458ede4088f5ba70eff917b (diff)
downloadbusybox-be84cd4ef66f8956eb4c7ff0542fd1ba823a70e7.zip
busybox-be84cd4ef66f8956eb4c7ff0542fd1ba823a70e7.tar.gz
Always report the applet name when doing error reporting.
Diffstat (limited to 'chroot.c')
-rw-r--r--chroot.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/chroot.c b/chroot.c
index 1c64e08..95aed3d 100644
--- a/chroot.c
+++ b/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));
}