summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2012-02-20 12:33:17 +0000
committerPádraig Brady <P@draigBrady.com>2012-02-20 12:41:21 +0000
commit7f48aa570d93347aa72d86a034e36377db6a22b9 (patch)
tree3d9a85b38637f0d5793e7ebe19814ab76362af2a /src
parent933989eca67bd82f011595937002cc284c98772d (diff)
downloadcoreutils-7f48aa570d93347aa72d86a034e36377db6a22b9.tar.xz
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.
Diffstat (limited to 'src')
-rw-r--r--src/ls.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/ls.c b/src/ls.c
index 92b17a4b4..f1dfb1e4e 100644
--- 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);