Mercurial > hg > aboriginal
view sources/patches/busybox-ftpd.patch @ 1737:1acbe7e78d9d draft
Switch from bz2 to gz tarball output.
bz2 is slowly being replaced by lz variants, but gzip isn't going anywhere.
(It retains a niche as a streaming protocol, it's the 80/20 solution optimizing
for speed, low memory requirements, and simple compressor implementation.)
author | Rob Landley <rob@landley.net> |
---|---|
date | Fri, 20 Feb 2015 13:12:45 -0600 |
parents | 2d264744ac3a |
children |
line wrap: on
line source
Busybox 1.19 let ftpd upload for non-root users. 1.20 broke that. diff --git a/networking/ftpd.c b/networking/ftpd.c index 33db964..761f239 100644 --- a/networking/ftpd.c +++ b/networking/ftpd.c @@ -1180,7 +1180,8 @@ int ftpd_main(int argc UNUSED_PARAM, char **argv) #endif if (argv[optind]) { - xchroot(argv[optind]); + xchdir(argv[optind]); + if (!getpid()) xchroot("."); } //umask(077); - admin can set umask before starting us