wok-undigest rev 668
busybox: tftpd should chroot
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Mar 10 12:58:17 2012 +0100 (2012-03-10) |
parents | 27c0e384e80b |
children | 907fb3a08763 |
files | busybox/receipt busybox/stuff/busybox-1.19-tftp-chroot.u |
line diff
1.1 --- a/busybox/receipt Sat Mar 10 12:46:45 2012 +0100 1.2 +++ b/busybox/receipt Sat Mar 10 12:58:17 2012 +0100 1.3 @@ -30,6 +30,7 @@ 1.4 conspy.u 1.5 httpd.u 1.6 su-nochdir.u 1.7 +tftp-chroot.u 1.8 EOT 1.9 cp $stuff/$PACKAGE-${VERSION%.*}.config .config 1.10 }
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/busybox/stuff/busybox-1.19-tftp-chroot.u Sat Mar 10 12:58:17 2012 +0100 2.3 @@ -0,0 +1,11 @@ 2.4 +--- busybox-1.19.4/networking/tftp.c Sat Feb 4 20:24:55 2012 2.5 ++++ busybox-tftp/networking/tftp.c Sat Mar 10 12:52:01 2012 2.6 +@@ -790,7 +790,7 @@ 2.7 + logmode = LOGMODE_SYSLOG; 2.8 + } 2.9 + if (argv[0]) 2.10 +- xchdir(argv[0]); 2.11 ++ xchroot(argv[0]); 2.12 + 2.13 + result = recv_from_to(STDIN_FILENO, block_buf, sizeof(block_buf), 2.14 + 0 /* flags */,