bin/107515: /bin/ls bug
davidt at yadt.co.uk
Thu Jan 4 07:00:45 PST 2007
The following reply was made to PR bin/107515; it has been noted by GNATS.
From: David Taylor <davidt at yadt.co.uk>
To: Remko Lodder <remko at FreeBSD.org>
Cc: goabranco at hotmail.com, freebsd-gnats-submit at 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
> 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
More information about the freebsd-bugs