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 9b8c99bdd..ac296babf 100644 --- a/runit/chpst.c +++ b/runit/chpst.c | |||
@@ -417,8 +417,7 @@ int chpst_main(int argc UNUSED_PARAM, char **argv) | |||
417 | } | 417 | } |
418 | 418 | ||
419 | if (opt & OPT_root) { | 419 | if (opt & OPT_root) { |
420 | xchdir(root); | 420 | xchroot(root); |
421 | xchroot("."); | ||
422 | } | 421 | } |
423 | 422 | ||
424 | if (opt & OPT_u) { | 423 | if (opt & OPT_u) { |