This is the mail archive of the
libc-hacker@sourceware.cygnus.com
mailing list for the glibc project.
Re: [Javier Kohen <root@jkohen.tough.com.ar>] libc/639: Filesystem Hierarchy Standard compliance.
- To: libc-hacker@cygnus.com
- Subject: Re: [Javier Kohen <root@jkohen.tough.com.ar>] libc/639: Filesystem Hierarchy Standard compliance.
- From: Andreas Jaeger <aj@arthur.rhein-neckar.de>
- Date: 30 May 1998 08:52:02 +0200
- Mail-Copies-To: never
- References: <u8hg2ffz72.fsf@arthur.rhein-neckar.de>
>>>>> Andreas Jaeger writes:
> We've received the appended bug report where the author points out a
> discrepancy between FHS and glibc for _PATH_MAILDIR. FHS uses now
> /var/mail but formerly /var/spool/mail was used - and is used by glibc.
> FHS version 2.0 from October 26, 1997 says:
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 5.7 /var/mail : User mailbox files
> This directory contains user mailbox files stored in the standard UNIX
> mailbox format.
> BEGIN RATIONALE
> This directory was relocated from /var/spool/mail in order to bring FHS
> in-line with nearly every UNIX implementation. This change is important
> for inter-operability since a single /var/mail is often shared between
> multiple hosts and multiple UNIX implementations (despite NFS locking
> issues).
> END RATIONALE
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Shall we ignore this change or follow it for glibc 2.1? I'm in favor
> of keeping it the way it is since I don't think the FHS is widely
> adopted yet (or is it used by RedHat 5 and Debian 2.0?).
As /var/mail will be used by Debian 2.1 (thanks Miquel) and nobody
complained I propose the appended patch. Please note that
sysdeps/generic/paths.h already uses /var/mail.
Andreas
1998-05-30 Andreas Jaeger <aj@arthur.rhein-neckar.de>
* sysdeps/unix/sysv/linux/paths.h (_PATH_MAILDIR): Use /var/mail
for _PATH_MAILDIR for FHS 2.0 compliance.
Reported by Javier Kohen <root@jkohen.tough.com.ar> [PR 639].
--- sysdeps/unix/sysv/linux/paths.h.~1~ Tue Apr 21 07:18:19 1998
+++ sysdeps/unix/sysv/linux/paths.h Sat May 30 08:47:24 1998
@@ -51,7 +51,7 @@
#define _PATH_KLOG "/proc/kmsg"
#define _PATH_KMEM "/dev/kmem"
#define _PATH_LASTLOG "/var/log/lastlog"
-#define _PATH_MAILDIR "/var/spool/mail"
+#define _PATH_MAILDIR "/var/mail"
#define _PATH_MAN "/usr/man"
#define _PATH_MEM "/dev/mem"
#define _PATH_MNTTAB "/etc/fstab"
--
Andreas Jaeger aj@arthur.rhein-neckar.de jaeger@informatik.uni-kl.de
for pgp-key finger ajaeger@alma.student.uni-kl.de