]> Savannah Git Hosting - gnulib.git/commit
mountlist: remove dependency on libmount
authorPádraig Brady <P@draigBrady.com>
Thu, 2 Apr 2015 03:18:02 +0000 (04:18 +0100)
committerPádraig Brady <P@draigBrady.com>
Fri, 3 Apr 2015 13:50:58 +0000 (14:50 +0100)
commit3fb6e360363744462ce15c381f0b116c6fc4ce82
treedb4308f25ba1351f75923951bce089548d167283
parente2e66692cd072a39ce26ecf94117f934008aab24
mountlist: remove dependency on libmount

* lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
directly, rather than depending on libmount, which has many
dependencies due to its dependence on libselinux, as detailed at:
http://lists.gnu.org/archive/html/bug-gnulib/2015-01/msg00063.html
Note we restrict this to __linux__ as that's probably where this
interface will remain.  If ever porting, it would be best
to first pull the makedev() wrapper from coreutils to a gnulib module.
Note also we don't add a getline dependency to the mountlist module,
as all Linux versions are sufficient.
ChangeLog
DEPENDENCIES
lib/mountlist.c
m4/ls-mntd-fs.m4