wok-current view busybox/stuff/busybox-1.18-tftp-chroot.u @ rev 12295
Smbbox add (tiny gui for mount/unmount smb shares)
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Mon Apr 16 11:50:29 2012 +0200 (2012-04-16) |
parents | |
children |
line source
1 --- busybox-1.18.4/networking/tftp.c
2 +++ busybox-1.18.4/networking/tftp.c
3 @@ -752,7 +752,7 @@
4 opt = option_mask32 = TFTPD_OPT | (getopt32(argv, "rcu:", &user_opt) << 8);
5 argv += optind;
6 if (argv[0])
7 - xchdir(argv[0]);
8 + xchroot(argv[0]);
10 result = recv_from_to(STDIN_FILENO, block_buf, sizeof(block_buf),
11 0 /* flags */,