]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
ls: adjust errnos indicating device non support for xattrs
authorPádraig Brady <P@draigBrady.com>
Mon, 20 Feb 2012 12:33:17 +0000 (12:33 +0000)
committerPádraig Brady <P@draigBrady.com>
Mon, 20 Feb 2012 12:41:21 +0000 (12:41 +0000)
* src/ls.c (errno_unsupported): Remove EBUSY, as this caters for
the case where ACLs can't be accessed because the _file_ is locked.
http://lists.gnu.org/archive/html/bug-coreutils/2005-06/msg00191.html
Also ENOENT is not safe to include as you get that if the _file_
is removed between the stat() and subsequent querying of xattrs.

src/ls.c

index 92b17a4b4eb30a9fa7ac52cd5a6a5ba41ad0ad4d..f1dfb1e4e664503dbb5d0c1273f79980e98caf7b 100644 (file)
--- a/src/ls.c
+++ b/src/ls.c
@@ -2783,9 +2783,7 @@ clear_files (void)
 static bool
 errno_unsupported (int err)
 {
-  return (err == EBUSY
-          || err == EINVAL
-          || err == ENOENT
+  return (err == EINVAL
           || err == ENOSYS
           || err == ENOTSUP
           || err == EOPNOTSUPP);