diff options
Diffstat (limited to 'libbb/xfuncs_printf.c')
-rw-r--r-- | libbb/xfuncs_printf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libbb/xfuncs_printf.c b/libbb/xfuncs_printf.c index 8a6d7e1d1..70d3fc96c 100644 --- a/libbb/xfuncs_printf.c +++ b/libbb/xfuncs_printf.c | |||
@@ -376,6 +376,7 @@ void FAST_FUNC xchroot(const char *path) | |||
376 | { | 376 | { |
377 | if (chroot(path)) | 377 | if (chroot(path)) |
378 | bb_perror_msg_and_die("can't change root directory to %s", path); | 378 | bb_perror_msg_and_die("can't change root directory to %s", path); |
379 | xchdir("/"); | ||
379 | } | 380 | } |
380 | 381 | ||
381 | // Print a warning message if opendir() fails, but don't die. | 382 | // Print a warning message if opendir() fails, but don't die. |