diff options
author | William Hubbs <w.d.hubbs@gmail.com> | 2015-10-04 15:35:33 -0500 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2015-10-04 15:35:33 -0500 |
commit | b3f7ff901f7d3ed00b9f73c601193ac507f62eaf (patch) | |
tree | 301e3f629240210a8d8921ac8dabb1a9ed2c733b | |
parent | a59365a582c3a8c9a8b863b572fddcb65fccadfd (diff) |
mountinfo: read /proc/self/mounts instead of /proc/mounts on Linux
-rw-r--r-- | src/rc/mountinfo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rc/mountinfo.c b/src/rc/mountinfo.c index 52e47f8d..3972a77a 100644 --- a/src/rc/mountinfo.c +++ b/src/rc/mountinfo.c @@ -298,7 +298,7 @@ find_mounts(struct args *args) int netdev; RC_STRINGLIST *list; - if ((fp = fopen("/proc/mounts", "r")) == NULL) + if ((fp = fopen("/proc/self/mounts", "r")) == NULL) eerrorx("getmntinfo: %s", strerror(errno)); list = rc_stringlist_new(); |