From owner-freebsd-fs Mon Feb 18 23:33:28 2002 Delivered-To: freebsd-fs@freebsd.org Received: from swan.prod.itd.earthlink.net (swan.mail.pas.earthlink.net [207.217.120.123]) by hub.freebsd.org (Postfix) with ESMTP id C0FEB37B421 for ; Mon, 18 Feb 2002 23:33:18 -0800 (PST) Received: from pool0367.cvx21-bradley.dialup.earthlink.net ([209.179.193.112] helo=mindspring.com) by swan.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16d4m5-0006mB-00; Mon, 18 Feb 2002 23:33:17 -0800 Message-ID: <3C71FFB3.820C529A@mindspring.com> Date: Mon, 18 Feb 2002 23:33:07 -0800 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Alfred Perlstein Cc: fs@freebsd.org Subject: Re: mkdir / == odd References: <20020218132751.GX12136@elvis.mu.org> <3C71475F.3D915B54@mindspring.com> <20020218185516.GY12136@elvis.mu.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Alfred Perlstein wrote: > * Terry Lambert [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