busybox/networking
Denys Vlasenko a6ae999b3b ftpd: escape chroot prior to re-executing ls helper
When we merely chdir to saved "real" root fd,
exec("proc/self/exe") works for static executables but not
for dynamic ones (they can't find their interpreter).

With this patch, we also *chroot* to real root.
As a bonus, this gives us proper usernames, timezone conversion
etc.

function                                             old     new   delta
popen_ls                                             203     259     +56
ftpd_main                                           2362    2366      +4

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2014-06-27 12:24:39 +02:00
..
2013-01-14 15:57:44 +01:00
2011-07-08 05:47:49 +02:00
2012-03-19 12:22:57 +01:00
2013-01-14 01:34:48 +01:00
2014-02-10 09:51:03 +01:00
2011-12-06 18:59:55 +01:00
2014-01-09 20:09:43 +01:00
2010-11-28 23:01:18 +01:00
2014-03-05 18:58:15 +01:00
2011-07-25 16:35:44 +02:00
2013-05-12 02:13:24 +02:00
2011-09-21 01:59:15 +02:00