/bin/ls bug?

Ricardo Branco goabranco at hotmail.com
Thu Jan 4 01:55:30 PST 2007


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/



More information about the freebsd-bugs mailing list