aboutsummaryrefslogtreecommitdiff
path: root/sysutils/toybox/files/patch-lib_portability.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/toybox/files/patch-lib_portability.c')
-rw-r--r--sysutils/toybox/files/patch-lib_portability.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/sysutils/toybox/files/patch-lib_portability.c b/sysutils/toybox/files/patch-lib_portability.c
new file mode 100644
index 000000000000..02d2ada24326
--- /dev/null
+++ b/sysutils/toybox/files/patch-lib_portability.c
@@ -0,0 +1,11 @@
+--- lib/portability.c.orig 2024-04-09 01:50:07 UTC
++++ lib/portability.c
+@@ -65,7 +65,7 @@ struct mtab_list *xgetmountlist(char *path)
+ int i, count;
+
+ if (path) error_exit("xgetmountlist");
+- if ((count = getmntinfo(&entries, 0)) == 0) perror_exit("getmntinfo");
++ if (!(count = getmntinfo(&entries, MNT_NOWAIT))) perror_exit("getmntinfo");
+
+ // The "test" part of the loop is done before the first time through and
+ // again after each "increment", so putting the actual load there avoids