bin/107515: /bin/ls bug

David Taylor davidt at
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>
To: Remko Lodder <remko at>
Cc: goabranco at, freebsd-gnats-submit at
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

More information about the freebsd-bugs mailing list