From: Pádraig Brady
Date: Mon, 20 Feb 2012 12:33:17 +0000 (+0000) Subject: ls: adjust errnos indicating device non support for xattrs X-Git-Tag: v8.16~45 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f48aa570d93347aa72d86a034e36377db6a22b9;p=thirdparty%2Fcoreutils.git 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. --- diff --git a/src/ls.c b/src/ls.c index 92b17a4b4e..f1dfb1e4e6 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);