Bump proot build revision for package update
[termux-packages] / packages / proot / src-syscall-rlimit.c.patch
1 On 32-bit prlimit() does not exist. prlimit64 however exists on both.
2
3 diff -u -r ../PRoot-next/src/syscall/rlimit.c ./src/syscall/rlimit.c
4 --- ../PRoot-next/src/syscall/rlimit.c 2015-07-23 15:50:10.000000000 -0400
5 +++ ./src/syscall/rlimit.c 2016-03-21 20:29:49.544175830 -0400
6 @@ -58,7 +58,7 @@
7 */
8 int translate_setrlimit_exit(const Tracee *tracee, bool is_prlimit)
9 {
10 - struct rlimit proot_stack;
11 + struct rlimit64 proot_stack;
12 word_t resource;
13 word_t address;
14 word_t tracee_stack_limit;
15 @@ -94,7 +94,7 @@
16 return -errno;
17
18 /* Get current PRoot's stack limit. */
19 - status = prlimit(0, RLIMIT_STACK, NULL, &proot_stack);
20 + status = prlimit64(0, RLIMIT_STACK, NULL, &proot_stack);
21 if (status < 0) {
22 VERBOSE(tracee, 1, "can't get stack limit.");
23 return 0; /* Not fatal. */
24 @@ -107,7 +107,7 @@
25 proot_stack.rlim_cur = tracee_stack_limit;
26
27 /* Increase current PRoot's stack limit. */
28 - status = prlimit(0, RLIMIT_STACK, &proot_stack, NULL);
29 + status = prlimit64(0, RLIMIT_STACK, &proot_stack, NULL);
30 if (status < 0)
31 VERBOSE(tracee, 1, "can't set stack limit.");
32 return 0; /* Not fatal. */