0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-11-27 06:18:57 +00:00
termux-packages/root-packages/nfs-utils/support-nfs-rpcmisc.c.patch
2023-01-31 03:57:01 +00:00

12 lines
260 B
Diff

--- a/support/nfs/rpcmisc.c
+++ b/support/nfs/rpcmisc.c
@@ -56,7 +56,7 @@
exit(0);
if (size == 0)
- size = getdtablesize();
+ size = sysconf(_SC_OPEN_MAX);
for (i = 0, openfd = 0; i < size && openfd < 2; i++)
if (FD_ISSET(i, &svc_fdset))