Gentoo Archives: gentoo-commits

From: William Hubbs <williamh@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/openrc:master commit in: src/rc/
Date: Sun, 04 Oct 2015 20:37:29
Message-Id: 1443990933.b3f7ff901f7d3ed00b9f73c601193ac507f62eaf.williamh@OpenRC
1 commit: b3f7ff901f7d3ed00b9f73c601193ac507f62eaf
2 Author: William Hubbs <w.d.hubbs <AT> gmail <DOT> com>
3 AuthorDate: Sun Oct 4 20:35:33 2015 +0000
4 Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 4 20:35:33 2015 +0000
6 URL: https://gitweb.gentoo.org/proj/openrc.git/commit/?id=b3f7ff90
7
8 mountinfo: read /proc/self/mounts instead of /proc/mounts on Linux
9
10 src/rc/mountinfo.c | 2 +-
11 1 file changed, 1 insertion(+), 1 deletion(-)
12
13 diff --git a/src/rc/mountinfo.c b/src/rc/mountinfo.c
14 index 52e47f8..3972a77 100644
15 --- a/src/rc/mountinfo.c
16 +++ b/src/rc/mountinfo.c
17 @@ -298,7 +298,7 @@ find_mounts(struct args *args)
18 int netdev;
19 RC_STRINGLIST *list;
20
21 - if ((fp = fopen("/proc/mounts", "r")) == NULL)
22 + if ((fp = fopen("/proc/self/mounts", "r")) == NULL)
23 eerrorx("getmntinfo: %s", strerror(errno));
24
25 list = rc_stringlist_new();