Subject: Re: Linux emulation and mkdir with trailing /
To: NetBSD Kernel Technical Discussion List <tech-kern@netbsd.org>
From: Greg A. Woods <woods@weird.com>
List: tech-kern
Date: 09/25/2000 17:19:58
[ On , September 25, 2000 at 16:21:56 (-0400), Dan Riley wrote: ]
> Subject: Re: Linux emulation and mkdir with trailing /
>
> The language appears to be the same in 1003.2-1992 and 1003.1-1996
> (ISO/IEC 9945-1:1996)--just the section numbers are different.
> 
> >  2.2.2.102  pathname:  A string that is used to identify a file.
> >  
> >  A pathname consists of, at most, {PATH_MAX} bytes, including the
> >  terminating null character.  It has an optional beginning slash, followed
> >  by zero or more filenames separated by slashes.  If the pathname refers
> >  to a directory, it may also have one or more trailing slashes.

OK, so to stray a bit more off-topic, why does SunOS-5.6, apparently in
conformance with both 1003.2-1992 and 1003.1-1988, do this?

	17:13 [154] $ ls -l /usr/bin/sh
	-r-xr-xr-x   2 bin      root       88620 Jul 16  1997 /usr/bin/sh
	17:18 [155] $ ls -l /usr/bin/sh/                                   
	-r-xr-xr-x   2 bin      root       88620 Jul 16  1997 /usr/bin/sh/
	17:18 [156] $ sh
	$ ls -l /usr/bin/sh
	-r-xr-xr-x   2 bin      root       88620 Jul 16  1997 /usr/bin/sh
	$ ls -l /usr/bin/sh/
	-r-xr-xr-x   2 bin      root       88620 Jul 16  1997 /usr/bin/sh/
	17:19 [157] $ $                                                      
	17:19 [157] $ csh
	% ls -l /usr/bin/sh
	-r-xr-xr-x   2 bin      root       88620 Jul 16  1997 /usr/bin/sh
	% ls -l /usr/bin/sh/
	-r-xr-xr-x   2 bin      root       88620 Jul 16  1997 /usr/bin/sh/

-- 
							Greg A. Woods

+1 416 218-0098      VE3TCP      <gwoods@acm.org>      <robohack!woods>
Planix, Inc. <woods@planix.com>; Secrets of the Weird <woods@weird.com>