-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
linux: use mntent.h instead of manually parsing /proc/mounts
setmntent() doesn't support root_fd, but manual parsing of /proc/mounts is fragile, and actually buggy for very long mount lines (see #142 (comment)). Since we only openat("/proc/mounts") there, just manually concatenate the fsroot_path and use setmntent(). Thanks to Nathan Hjelm for the report. Fixes #142.
- Loading branch information
Showing
1 changed file
with
37 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters