diff options
author | Rob Landley <rob@landley.net> | 2024-04-16 06:36:30 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2024-04-16 06:36:30 -0500 |
commit | 7d9ee89d3cf80f5e712badd7caa988ce235ccda1 (patch) | |
tree | cc70d73d21d9a35201fdcac73e268c8c356a421a | |
parent | 82720e5954cb20cfd52649a6c9e6bc47764a22a1 (diff) | |
download | toybox-7d9ee89d3cf80f5e712badd7caa988ce235ccda1.tar.gz |
Vidar Karlsen says freebsd needs a magic constant.
-rw-r--r-- | lib/portability.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/portability.c b/lib/portability.c index 83382d1d..abcecc80 100644 --- a/lib/portability.c +++ b/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_WAIT))) 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 |