1
1
Nathan Hjelm 15007b4e2b 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 open-mpi/hwloc#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.

(Cherry-picked from open-mpi/hwloc@d2d07b9a22)

Signed-off-by: Nathan Hjelm <hjelmn@lanl.gov>
2016-01-07 12:55:03 -07:00
..
2016-01-07 12:33:12 -07:00
2016-01-07 12:33:12 -07:00
2016-01-07 12:33:12 -07:00
2016-01-07 12:33:12 -07:00
2016-01-07 12:33:12 -07:00
2016-01-07 12:33:12 -07:00