aboriginal

view sources/patches/busybox-ftpd.patch @ 1536:6840ac8ad2d9

Added tag 1.2.0 for changeset 2d264744ac3a
author Rob Landley <rob@landley.net>
date Wed Aug 22 20:54:33 2012 -0500 (24 months ago)
parents
children
line source
1 Busybox 1.19 let ftpd upload for non-root users. 1.20 broke that.
3 diff --git a/networking/ftpd.c b/networking/ftpd.c
4 index 33db964..761f239 100644
5 --- a/networking/ftpd.c
6 +++ b/networking/ftpd.c
7 @@ -1180,7 +1180,8 @@ int ftpd_main(int argc UNUSED_PARAM, char **argv)
8 #endif
10 if (argv[optind]) {
11 - xchroot(argv[optind]);
12 + xchdir(argv[optind]);
13 + if (!getpid()) xchroot(".");
14 }
16 //umask(077); - admin can set umask before starting us