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
..
2015-08-18 09:11:38 -06:00
2015-06-23 20:59:57 -07:00
2015-08-29 16:04:10 -07:00
2015-06-25 10:14:13 -06:00
2015-06-23 20:59:57 -07:00