]> git.ipfire.org Git - thirdparty/coreutils.git/commit
ls: suppress "Permission denied" errors on NFS
authorPádraig Brady <P@draigBrady.com>
Wed, 8 Jan 2025 21:46:05 +0000 (21:46 +0000)
committerPádraig Brady <P@draigBrady.com>
Fri, 10 Jan 2025 14:46:40 +0000 (14:46 +0000)
commitb58e321c8d5dd841f4170312692035a66b5ac149
tree7c22f4b9b46f885fa5b49deb92461ee6571d8ef9
parent6b9e601a9736f29e89b0d0c49305a6a2e599e908
ls: suppress "Permission denied" errors on NFS

NFS (on Linux 6.12 at least) was seen to return EACCES
from listxattr() for files without read access.
We started using listxattr() in coreutils 9.4.

* src/ls.c (gobble_file): Map EACCES from file_has_aclinfo()
to '?', rather than displaying the error.
* doc/coreutils.texi (ls invocation): Document the '?' flag.
* NEWS: Mention the bug fix.
Addresses https://bugs.gnu.org/74692
NEWS
doc/coreutils.texi
src/ls.c