Files
termux-packages/packages/lsof/main.c.patch
termux-pacman-bot f3f74688e4 lsof: bump to 4.99.0
2023-11-12 06:31:04 +00: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);