[glibc] Define _PATH_MOUNTED as "/etc/mtab"
Samuel Thibault via Glibc-cvs <[email protected]> Mon, 22 Jun 2026 20:26:38 +0000 (GMT)
| Newsgroups | gmane.comp.lib.glibc.cvs |
|---|---|
| Message-ID | <[email protected]> |
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=91eb5057b9d9e7e20e976a74e3e777310007c47a commit 91eb5057b9d9e7e20e976a74e3e777310007c47a Author: Justus Winter <[email protected]> Date: Thu Aug 15 10:43:35 2013 +0200 Define _PATH_MOUNTED as "/etc/mtab" Change the definition of _PATH_MOUNTED to "/etc/mtab". This is the value used on Linux, and BSD also uses /etc/mtab. The change is motivated by the fact that on Debian /etc/mtab is a symbolic link to /proc/mounts. This patch adjusts the macro for non-linux systems such as Hurd. Changing this using sysdeps/mach/hurd/paths.h causes build problems because /usr/include/hurd/paths.h is shadowed by this file. This change is proposed in the hope that aligning the non-linux targets with the glibc for Linux is perceived as a good thing while fixing this problem on Debian/Hurd along the way. Diff: --- sysdeps/generic/paths.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysdeps/generic/paths.h b/sysdeps/generic/paths.h index 893b4c2286..6b8f440428 100644 --- a/sysdeps/generic/paths.h +++ b/sysdeps/generic/paths.h @@ -51,7 +51,7 @@ #define _PATH_MAN "/usr/share/man" #define _PATH_MEM "/dev/mem" #define _PATH_MNTTAB "/etc/fstab" -#define _PATH_MOUNTED "/var/run/mtab" +#define _PATH_MOUNTED "/etc/mtab" #define _PATH_NOLOGIN "/etc/nologin" #define _PATH_PRESERVE "/var/lib" #define _PATH_RWHODIR "/var/spool/rwho"