diff options
Diffstat (limited to 'runit')
-rw-r--r-- | runit/chpst.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/runit/chpst.c b/runit/chpst.c index 0f605cc45..7b70a4d5a 100644 --- a/runit/chpst.c +++ b/runit/chpst.c | |||
@@ -332,8 +332,7 @@ int chpst_main(int argc, char **argv) | |||
332 | if (env_dir) edir(env_dir); | 332 | if (env_dir) edir(env_dir); |
333 | if (root) { | 333 | if (root) { |
334 | xchdir(root); | 334 | xchdir(root); |
335 | if (chroot(".") == -1) | 335 | xchroot("."); |
336 | bb_perror_msg_and_die("chroot"); | ||
337 | } | 336 | } |
338 | slimit(); | 337 | slimit(); |
339 | if (nicelvl) { | 338 | if (nicelvl) { |