Mercurial > hg > aboriginal
comparison sources/patches/busybox-ftpd.patch @ 1535:2d264744ac3a 1.2.0
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, 22 Aug 2012 19:44:44 -0500 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1534:418a7e78cfe1 | 1535:2d264744ac3a |
---|---|
1 Busybox 1.19 let ftpd upload for non-root users. 1.20 broke that. | |
2 | |
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 | |
9 | |
10 if (argv[optind]) { | |
11 - xchroot(argv[optind]); | |
12 + xchdir(argv[optind]); | |
13 + if (!getpid()) xchroot("."); | |
14 } | |
15 | |
16 //umask(077); - admin can set umask before starting us |