mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2025-09-10 07:59:52 +02:00
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
This commit is contained in:
@@ -8084,6 +8084,10 @@ with a security context, but no other alternate access method.
|
||||
A file with any other combination of alternate access methods
|
||||
is marked with a @samp{+} character.
|
||||
|
||||
@command{ls} uses a @samp{?} character to indicate it is unable to determine
|
||||
whether alternate access methods apply to the file, which may happen for
|
||||
example with some NFS setups with files without read permission.
|
||||
|
||||
@item -n
|
||||
@itemx --numeric-uid-gid
|
||||
@opindex -n
|
||||
|
||||
Reference in New Issue
Block a user