termux-packages/packages/fakeroot/fakeroot-1.23_faked.c.patch
Leonid Pliushch 3efd835468 new package: fakeroot
Uses tcp ipc since SysV ipc is not available on most devices.

Requested in: https://github.com/termux/termux-packages/issues/2915
2018-10-02 21:20:08 +02:00

13 lines
433 B
Diff

diff -uNr fakeroot-1.23/faked.c fakeroot-1.23.mod/faked.c
--- fakeroot-1.23/faked.c 2018-07-01 22:01:34.000000000 +0300
+++ fakeroot-1.23.mod/faked.c 2018-10-01 17:11:53.263620010 +0300
@@ -1487,7 +1487,7 @@
/* literally copied from the linux klogd code, go to background */
if ((pid=fork()) == 0){
int fl;
- int num_fds = getdtablesize();
+ int num_fds = sysconf(_SC_OPEN_MAX);
fflush(stdout);