aboutsummaryrefslogtreecommitdiff
path: root/coreutils/chroot.c
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils/chroot.c')
-rw-r--r--coreutils/chroot.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/coreutils/chroot.c b/coreutils/chroot.c
index a3e70e925..1198a415a 100644
--- a/coreutils/chroot.c
+++ b/coreutils/chroot.c
@@ -19,9 +19,7 @@ int chroot_main(int argc, char **argv)
}
++argv;
- if (chroot(*argv)) {
- bb_perror_msg_and_die("cannot change root directory to %s", *argv);
- }
+ xchroot(*argv);
xchdir("/");
++argv;