access()

Chuck Karish karish at forel.stanford.edu
Sat Mar 11 09:25:05 AEST 1989


In article <5980045 at hpfcdc.HP.COM> rml at hpfcdc.HP.COM (Bob Lenk) wrote:
>> IEEE 1003.1 requires that consecutive slashes be allowed and in effect
>> be interpreted as a single slash.  (Thus OpenNet's convention would not
>> be POSIX-compliant.)

>1003.1 makes an explicit exception for // at the start of a pathname,
>precisely because of networked file systems like this.  Three or more
>slashes at the beginning of a pathname or two or more anywhere else
>are equivalent to a single slash.  This was the topic of considerable
>debate, and varied among drafts.

	Where does this show up in the standard?  I've looked in the
	entry for 'pathname resolution' (IEEE Std 1003.1-1988, Chapter
	2.4, p. 36) and can find no such exception described.

	The only relevant requirement I found says "If the pathname
	begins with a slash, the predecessor of the first filename in
	the pathname is taken to be the root directory of the process[.]"

	Since a filename may not contain a slash, this means that
	two leading slashes are equivalent to a single slash.

	Chuck Karish	karish at denali.stanford.edu
			hplabs!hpda!mindcrf!karish
			(415) 493-7277



More information about the Comp.unix.wizards mailing list