GNU bug report logs -
#13635
ls: use different color for unreadable files
Previous Next
Full log
Message #23 received at 13635 <at> debbugs.gnu.org (full text, mbox):
My guess is that 'csf' is readable but not searchable.
That would explain your symptoms:
$ ls -ld csf
dr--------. 2 eggert eggert 4096 Feb 6 15:31 csf
$ ls -ld csf/.
ls: cannot access csf/.: Permission denied
$ ls --color=always -a csf
ls: cannot access csf/.: Permission denied
ls: cannot access csf/..: Permission denied
. ..
In the last example, 'ls' needs to stat csf/. and csf/..
to see whether their permissions are weird (since directories
with weird permissions are given different colors), but
it cannot do so since csf lacks search permission.
One possible fix would be to alter 'ls' so that, if 'ls' cannot
find out about a file, it gives the file an even weirder
color. That might be more useful than the current behavior.
Is this something you could write?
This bug report was last modified 6 years and 244 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.