From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 3EF99138BED for ; Sun, 4 Oct 2015 20:37:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3D17EE0762; Sun, 4 Oct 2015 20:37:27 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D95D0E0762 for ; Sun, 4 Oct 2015 20:37:26 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B8264340A30 for ; Sun, 4 Oct 2015 20:37:25 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 507AE548 for ; Sun, 4 Oct 2015 20:37:23 +0000 (UTC) From: "William Hubbs" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "William Hubbs" Message-ID: <1443990933.b3f7ff901f7d3ed00b9f73c601193ac507f62eaf.williamh@OpenRC> Subject: [gentoo-commits] proj/openrc:master commit in: src/rc/ X-VCS-Repository: proj/openrc X-VCS-Files: src/rc/mountinfo.c X-VCS-Directories: src/rc/ X-VCS-Committer: williamh X-VCS-Committer-Name: William Hubbs X-VCS-Revision: b3f7ff901f7d3ed00b9f73c601193ac507f62eaf X-VCS-Branch: master Date: Sun, 4 Oct 2015 20:37:23 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: ef2af0c0-74d1-4bce-b6b9-aea81fef1110 X-Archives-Hash: b9005ad5e01618624334bffaacaed49b commit: b3f7ff901f7d3ed00b9f73c601193ac507f62eaf Author: William Hubbs gmail com> AuthorDate: Sun Oct 4 20:35:33 2015 +0000 Commit: William Hubbs gentoo 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();