ogham / exa

A modern replacement for ‘ls’.
https://the.exa.website/
MIT License
23.63k stars 661 forks source link

List directory contents with permissions r-- #1130

Closed victor-timofei closed 1 year ago

victor-timofei commented 2 years ago

If a directory has the permissions r-- for a user, the user should be able to list the names of the contents in that directory even if it cannot get any extra information on those names.

This is possible with GNU ls but not with exa.

Steps to reproduce:

$ mkdir test
$ touch test/a
$ touch test/b
$ chmod -wx test
$ exa test
[test/b: Permission denied (os error 13)]
[test/a: Permission denied (os error 13)]
$ ls test
a b
SteveLauC commented 2 years ago

exa tries to read the metadata of a and b, this requires the x permission on their parent directory