commit: b3f7ff901f7d3ed00b9f73c601193ac507f62eaf
Author: William Hubbs <w.d.hubbs <AT> gmail <DOT> com>
AuthorDate: Sun Oct 4 20:35:33 2015 +0000
Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Sun Oct 4 20:35:33 2015 +0000
URL: https://gitweb.gentoo.org/proj/openrc.git/commit/?id=b3f7ff90
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 52e47f8..3972a77 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();