diff options
author | Denys Vlasenko | 2012-03-08 00:28:24 +0100 |
---|---|---|
committer | Denys Vlasenko | 2012-03-08 00:28:24 +0100 |
commit | 0687a5b496a05cbc06f3bcdc517a2e6cabc535df (patch) | |
tree | 55aedfacfddad2faafb75c4bee0d98122325df5c /networking/ftpd.c | |
parent | 39c2cb2e93e2acc75a5eb6dd91d81f79c787acd5 (diff) | |
download | busybox-0687a5b496a05cbc06f3bcdc517a2e6cabc535df.zip busybox-0687a5b496a05cbc06f3bcdc517a2e6cabc535df.tar.gz |
libbb: make xchroot do a chdir("/") after chroot
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/ftpd.c')
-rw-r--r-- | networking/ftpd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/networking/ftpd.c b/networking/ftpd.c index e38138c..1c97df5 100644 --- a/networking/ftpd.c +++ b/networking/ftpd.c @@ -1179,8 +1179,7 @@ int ftpd_main(int argc UNUSED_PARAM, char **argv) #endif if (argv[optind]) { - xchdir(argv[optind]); - chroot("."); + xchroot(argv[optind]); } //umask(077); - admin can set umask before starting us |