ports/sysutils/toybox/files/patch-lib_portability.c
Vidar Karlsen 5bfa5d580d sysutils/toybox: Update to 0.8.11
Changelog: https://landley.net/toybox/news.html#08-04-2024
- New toys: dd, fold, nbd-server, su, ts, tsort, uname
- Bugfix: df now works
- passwd is temporarily removed waiting on an infrastructure rewrite

Changes to the port itself:
- I reworked the install portion to stay closer to upstream's way of
doing it. This reduces the amount of clutter in the Makefile and makes
it easier to update the port in the future.
- The port patches[1][2] have been sent upstream.

[1] Enabling shuf and uname
[2] Fixing the portability shim to use the correct parameters with
getmntinfo():
7d9ee89d3c

PR:		278481
2024-04-27 17:45:16 +01:00

11 lines
503 B
C

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