Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 04 Jan 2007 09:43:23 +0000
From:      "Ricardo Branco" <goabranco@hotmail.com>
To:        freebsd-bugs@freebsd.org
Subject:   /bin/ls bug?
Message-ID:  <BAY108-F55BE40E311176D5458F32B5B80@phx.gbl>

next in thread | raw e-mail | index | archive | help
Hi!

Why is it that /bin/ls has the following behavior?

$ mkdir /tmp/a
$ chmod 000 /tmp/a
$ ls  /tmp/a/
ls: : Permission denied
$ ls /tmp/a
ls: a: Permission denied

I think the most sensible way is to use basename() and use the last 
component for the error message rather than just printing whatever exists 
after the last slash...

I'm seeing this problem in both FreeBSD 6.2-PRERELEASE & FreeBSD 
5.4-RELEASE.

Salutes,
R.

_________________________________________________________________
Horóscopo, tarot, numerología... Escucha lo que te dicen los astros. 
http://astrocentro.msn.es/




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BAY108-F55BE40E311176D5458F32B5B80>