Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Feb 2002 23:33:07 -0800
From:      Terry Lambert <tlambert2@mindspring.com>
To:        Alfred Perlstein <bright@mu.org>
Cc:        fs@freebsd.org
Subject:   Re: mkdir / == odd
Message-ID:  <3C71FFB3.820C529A@mindspring.com>
References:  <20020218132751.GX12136@elvis.mu.org> <3C71475F.3D915B54@mindspring.com> <20020218185516.GY12136@elvis.mu.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Alfred Perlstein wrote:
> * Terry Lambert <tlambert2@mindspring.com> [020218 10:27] wrote:
> > Alfred Perlstein wrote:
> > >
> > > # mkdir /
> > > mkdir: /: Is a directory
> >
> > [ ... patch to special case "//" ... ]
> >
> > Multiple leading slashes are special to POSIX.  Could you
> > maybe add a "-p" to the mkdir argument list, instead?
> 
> I get the same problem.  In fact that's what triggered it
> in the first place.
> 
> % mkdir -p //usr/X11R6/bin
> mkdir: /: Is a directory.
> %
> 
> bah!

Looks like a problem with component seperation before use.

Your hack is an OK workaround; is it possible to get rid of
the double "//" in the original code?  Only multiple "/"
in intermediate path compnents are supposed to be collapsed.

I don't know if FreeBSD ever intends to support POSIX name
space escapes for things like extended attributes, but if
it does, this will come back to bite us later.  8-(.

-- Terry

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-fs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3C71FFB3.820C529A>