Date: Thu, 4 Jan 2007 15:00:44 GMT From: David Taylor <davidt@yadt.co.uk> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/107515: /bin/ls bug Message-ID: <200701041500.l04F0iIb032556@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/107515; it has been noted by GNATS. From: David Taylor <davidt@yadt.co.uk> To: Remko Lodder <remko@FreeBSD.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200701041500.l04F0iIb032556>