Subject: Re: Trailing '/' to mkdir(2) revisited
To: Matthew Mondor <mmondor@gobot.ca>
From: Greg A. Woods <woods@weird.com>
List: tech-kern
Date: 06/24/2003 02:53:52
[ On Tuesday, June 24, 2003 at 00:30:39 (-0400), Matthew Mondor wrote: ]
> Subject: Re: Trailing '/' to mkdir(2) revisited
>
> > I know this has been discussed before and I don't want to stir up a
> > flame fest, however NetBSD is getting a bit lonely in its refusal to
> > accept a trailing '/' on a path supplied to mkdir(2).
> > 
> >   4922 a3       CALL  mkdir(0x804a580,0x1ff)
> >   4922 a3       NAMI  "fubar/"
> >   4922 a3       RET   mkdir -1 errno 2 No such file or directory
> 
> I also noticed that umount does not permit a trailing slash on NetBSD but
> that Linux does, anyone know about other such operating systems that do?

_ALL_ systems based on traditional Unix _ignore_ _all_ trailing slashes
on _all_ pathanmes for all system calls.

-- 
								Greg A. Woods

+1 416 218-0098;            <g.a.woods@ieee.org>;           <woods@robohack.ca>
Planix, Inc. <woods@planix.com>; VE3TCP; Secrets of the Weird <woods@weird.com>