ls: adjust errnos indicating device non support for xattrs

* 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.
This commit is contained in:
Pádraig Brady committed 2012-02-20 12:41:21 +00:00
1 parent 933989eca6
commit 7f48aa570d
1 file changed
+1 -3
+1 -3
View File
@@ -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);