0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-03-04 04:48:55 +00:00
2023-11-12 14:13:03 +08:00

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);