From 7f48aa570d93347aa72d86a034e36377db6a22b9 Mon Sep 17 00:00:00 2001 From: Pádraig Brady Date: Mon, 20 Feb 2012 12:33:17 +0000 Subject: 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. --- src/ls.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') 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); -- cgit v1.2.3-54-g00ecf