This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH][BZ 19108] paths: use /proc/mounts instead of mtab


On 11/18/2015 03:30 PM, Jason A. Donenfeld wrote:
> -#define	_PATH_MOUNTED	"/etc/mtab"
> +#define	_PATH_MOUNTED	"/proc/mounts"

Why not /proc/self/mounts?  I don't know if there is a difference;
readlink on paths under /proc often does not provide accurate information.

I suspect a better way is for distributions to make /etc/mtab a symbolic
link to whatever location they need.  Fedora uses /proc/self/mounts, for
instance.

Florian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]