From patchwork Wed Nov 18 14:30:02 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jason A. Donenfeld" X-Patchwork-Id: 9721 Received: (qmail 14111 invoked by alias); 18 Nov 2015 14:29:48 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 14085 invoked by uid 89); 18 Nov 2015 14:29:47 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=BAYES_00, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 X-HELO: frisell.zx2c4.com From: "Jason A. Donenfeld" To: libc-alpha@sourceware.org Cc: "Jason A. Donenfeld" Subject: [PATCH][BZ 19108] paths: use /proc/mounts instead of mtab Date: Wed, 18 Nov 2015 15:30:02 +0100 Message-Id: <1447857002-9791-1-git-send-email-Jason@zx2c4.com> A related commit adjusting the texinfo documentation will have to be provided, but this commit changes the relevant path per the bug report. Entering the 21st century. Signed-off-by: Jason A. Donenfeld --- ChangeLog | 6 ++++++ sysdeps/unix/sysv/linux/paths.h | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index a915653..08143ab 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2015-11-18 Jason A. Donenfeld + + [BZ #19108] + * sysdeps/unix/sysv/linux/paths.h: Update to using /proc/mounts + instead of /etc/mtab. + 2015-11-17 Siddhesh Poyarekar * sysdeps/ieee754/dbl-64/s_sin.c (__sin)[IN_SINCOS]: Mark function diff --git a/sysdeps/unix/sysv/linux/paths.h b/sysdeps/unix/sysv/linux/paths.h index 1342ab3..ec342fe 100644 --- a/sysdeps/unix/sysv/linux/paths.h +++ b/sysdeps/unix/sysv/linux/paths.h @@ -52,7 +52,7 @@ #define _PATH_MAN "/usr/share/man" #define _PATH_MEM "/dev/mem" #define _PATH_MNTTAB "/etc/fstab" -#define _PATH_MOUNTED "/etc/mtab" +#define _PATH_MOUNTED "/proc/mounts" #define _PATH_NOLOGIN "/etc/nologin" #define _PATH_PRESERVE "/var/lib" #define _PATH_RWHODIR "/var/spool/rwho"