mirror of
https://github.com/termux/termux-packages.git
synced 2025-03-04 04:48:55 +00:00
12 lines
284 B
Diff
12 lines
284 B
Diff
--- a/src/main.c
|
|
+++ b/src/main.c
|
|
@@ -118,7 +118,7 @@
|
|
* Make sure umask allows lsof to define its own file permissions.
|
|
*/
|
|
|
|
- if ((MaxFd = (int)GET_MAX_FD()) < 53)
|
|
+ if ((MaxFd = (int)sysconf(_SC_OPEN_MAX)) < 53)
|
|
MaxFd = 53;
|
|
|
|
closefrom_shim(ctx, 3);
|