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)
19 } 19 }
20 20
21 ++argv; 21 ++argv;
22 if (chroot(*argv)) { 22 xchroot(*argv);
23 bb_perror_msg_and_die("cannot change root directory to %s", *argv);
24 }
25 xchdir("/"); 23 xchdir("/");
26 24
27 ++argv; 25 ++argv;