aboutsummaryrefslogtreecommitdiff
path: root/src/rc
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2015-10-04 15:35:33 -0500
committerWilliam Hubbs <w.d.hubbs@gmail.com>2015-10-04 15:35:33 -0500
commitb3f7ff901f7d3ed00b9f73c601193ac507f62eaf (patch)
tree301e3f629240210a8d8921ac8dabb1a9ed2c733b /src/rc
parenta59365a582c3a8c9a8b863b572fddcb65fccadfd (diff)
mountinfo: read /proc/self/mounts instead of /proc/mounts on Linux
Diffstat (limited to 'src/rc')
-rw-r--r--src/rc/mountinfo.c2
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();