From owner-freebsd-current Fri Aug 31 11:36:54 2001 Delivered-To: freebsd-current@freebsd.org Received: from green.bikeshed.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id AF4E437B405; Fri, 31 Aug 2001 11:36:51 -0700 (PDT) Received: from localhost (green@localhost) by green.bikeshed.org (8.11.4/8.11.1) with ESMTP id f7VIaog15767; Fri, 31 Aug 2001 14:36:50 -0400 (EDT) (envelope-from green@green.bikeshed.org) Message-Id: <200108311836.f7VIaog15767@green.bikeshed.org> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Bruce Evans Cc: "Brian F. Feldman" , "Steve O'Hara-Smith" , David Wolfskill , current@FreeBSD.ORG Subject: Re: symlink(2) [Was: Re: tcsh.cat] In-Reply-To: Message from Bruce Evans of "Sat, 01 Sep 2001 03:17:54 +1000." <20010901031439.A4397-100000@besplex.bde.org> From: "Brian F. Feldman" Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 31 Aug 2001 14:36:50 -0400 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Bruce Evans wrote: > On Fri, 31 Aug 2001, Brian F. Feldman wrote: > > > Bruce Evans wrote: > > > Here's an example of a standard utility being clueless about symlinks to > > > nothing: > > > > > > $ ln -s '' foo > > > $ cp foo bar > > > cp: foo is a directory (not copied) > > > > > > foo is certainly not a directory. The bug seems to be in fts. > > > > No, "foo" certainly _is_ a directory. It is precisely the same thing as > > ".". > > No, the empty pathname has been invalid and not an alias for "." since at > least the first version of POSIX. I didn't read the rest of the thread til later ;) The fact remains that FreeBSD interprets it as such in namei(), and is it not an undefined behavior according to POSIX? -- Brian Fundakowski Feldman \ FreeBSD: The Power to Serve! / green@FreeBSD.org `------------------------------' To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message