notmuch: Update from 0.26.1 to 0.26.2
[termux-packages] / packages / busybox / tftp.c.patch
1 We disable security, because chroot() does not work with our environment.
2
3 With chdir() this can be used for bootstrapping on a local network.
4
5 diff -u -r ../busybox-1.22.1/networking/tftp.c ./networking/tftp.c
6 --- ../busybox-1.22.1/networking/tftp.c 2014-01-09 19:15:44.000000000 +0100
7 +++ ./networking/tftp.c 2014-07-01 08:42:48.000000000 +0200
8 @@ -790,7 +790,7 @@
9 G.pw = xgetpwnam(user_opt);
10 }
11 if (argv[0]) {
12 - xchroot(argv[0]);
13 + xchdir(argv[0]);
14 }
15
16 result = recv_from_to(STDIN_FILENO, G.block_buf, sizeof(G.block_buf),