From b3f7ff901f7d3ed00b9f73c601193ac507f62eaf Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Sun, 4 Oct 2015 15:35:33 -0500 Subject: mountinfo: read /proc/self/mounts instead of /proc/mounts on Linux --- src/rc/mountinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- cgit v1.2.3