From owner-freebsd-bugs@FreeBSD.ORG Thu Jan 4 15:00:45 2007 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A6B2C16A503 for ; Thu, 4 Jan 2007 15:00:45 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 3D60B13C441 for ; Thu, 4 Jan 2007 15:00:45 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l04F0i6A032557 for ; Thu, 4 Jan 2007 15:00:44 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l04F0iIb032556; Thu, 4 Jan 2007 15:00:44 GMT (envelope-from gnats) Date: Thu, 4 Jan 2007 15:00:44 GMT Message-Id: <200701041500.l04F0iIb032556@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: David Taylor Cc: Subject: Re: bin/107515: /bin/ls bug X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: David Taylor List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Jan 2007 15:00:45 -0000 The following reply was made to PR bin/107515; it has been noted by GNATS. From: David Taylor To: Remko Lodder Cc: goabranco@hotmail.com, freebsd-gnats-submit@FreeBSD.org Subject: Re: bin/107515: /bin/ls bug Date: Thu, 4 Jan 2007 14:38:24 +0000 On Thu, 04 Jan 2007, Remko Lodder wrote: > Synopsis: /bin/ls bug > > State-Changed-From-To: open->closed > State-Changed-By: remko > State-Changed-When: Thu Jan 4 12:36:42 UTC 2007 > State-Changed-Why: > I am sorry but this is not a bug, the behaviour is to list the contents > of the directory if you request the leaf ( /tmp/a/ ) and to show the > directory itself if you request that (/tmp/a). This is desired > functionality and should not change imo. Unfortunately that is not the behaviour exhibited by ls. Further, that was not the problem being reported, either. Both "ls /tmp/a/" and "ls /tmp/a" attempt to list the contents of the directory (as shown by the "Permission Denied" error. The directory itself can by listed using "ls -d /tmp/a/" (or "ls -d /tmp/a"). The actual bug being reported is a different matter, however: $ ls /tmp/a/ ls: : Permission denied ^^^ The name should not be blank here, it should be something like: $ ls /tmp/a ls: a: Permission denied ^^^^ -- David Taylor