Subject: Re: devopen() in standalone programs.
To: Jason Thorpe <thorpej@nas.nasa.gov>
From: Simon Burge <simonb@netbsd.org>
List: tech-kern
Date: 11/08/1999 13:46:42
Jason Thorpe wrote:

> On Fri, 05 Nov 1999 16:52:03 +1100 
>  Simon Burge <simonb@netbsd.org> wrote:
> 
>  > devopen() takes a string which is the complete filename to open
>  > including any device specifications, and returns via a pointer the
>  > filename in the filesystem.  It appears that ufs doesn't care
>  > whether this remaining filename has a leading '/' or not, but cdfs
>  > will not find the file if this is the case.
>  > 
>  > Is the correct thing for devopen() to remove a leading '/' if it's
>  > there or for cdfs to ignore a leading '/'?
> 
> The libsa NFS has this bug, too.

Is this on an i386?  It's the only netboot that specifies NFS_NOSYMLINK,
and the leading '/'s aren't removed in this case.  Easy enough to fix.

> I'd say those file systems should be fixed to ignore the leading /, if
> necessary.

Is "//" legal in ISO-cd-land?  The plan was to add something as simple as:

	while (*cp == '/')
		cp++;

to both nfs.c and cd9660.o...

Simon.