aboutsummaryrefslogtreecommitdiff
path: root/toys/other/chroot.c
diff options
context:
space:
mode:
Diffstat (limited to 'toys/other/chroot.c')
-rw-r--r--toys/other/chroot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/other/chroot.c b/toys/other/chroot.c
index 4260d98f..b6ef17d6 100644
--- a/toys/other/chroot.c
+++ b/toys/other/chroot.c
@@ -24,7 +24,7 @@ void chroot_main(void)
{
char *binsh[] = {"/bin/sh", "-i", 0};
- if (chdir(*toys.optargs) || chroot(".")) perror_exit("%s", *toys.optargs);
+ if (chdir(*toys.optargs) || chroot(".")) perror_exit_raw(*toys.optargs);
if (toys.optargs[1]) xexec(toys.optargs+1);
else xexec(binsh);
}