aboriginal

view sources/patches/busybox-ftpd.patch @ 1535:2d264744ac3a

Fix to busybox ftpd so native-build can upload, and switch on yet another uClibc symbol busybox defconfig grew a dependency on.
author Rob Landley <rob@landley.net>
date Wed Aug 22 19:44:44 2012 -0500 (20 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