This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH][BZ 19108] paths: use /proc/mounts instead of mtab
- From: "Jason A. Donenfeld" <Jason at zx2c4 dot com>
- To: libc-alpha at sourceware dot org
- Cc: "Jason A. Donenfeld" <Jason at zx2c4 dot com>
- Date: Wed, 18 Nov 2015 15:30:02 +0100
- Subject: [PATCH][BZ 19108] paths: use /proc/mounts instead of mtab
- Authentication-results: sourceware.org; auth=none
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 <Jason@zx2c4.com>
---
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 <Jason@zx2c4.com>
+
+ [BZ #19108]
+ * sysdeps/unix/sysv/linux/paths.h: Update to using /proc/mounts
+ instead of /etc/mtab.
+
2015-11-17 Siddhesh Poyarekar <siddhesh.poyarekar@linaro.org>
* 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"
--
2.5.0