]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
ls: ignore spurious getfilecon failure due to lack of SELinux support
authorJohn David Anglin <dave@hiauly1.hia.nrc.ca>
Mon, 4 Aug 2008 12:04:44 +0000 (14:04 +0200)
committerJim Meyering <meyering@redhat.com>
Tue, 5 Aug 2008 10:27:18 +0000 (12:27 +0200)
* src/ls.c (gobble_file): Upon failed getfilecon, treat an errno value
of EOPNOTSUPP just like ENOTSUP.  See <http://bugs.debian.org/488549>.

src/ls.c

index fd32730e4e7ffbacddfb188467b46e0d77dee174..9261f62196f7bc263a73112704e12129e06c9594 100644 (file)
--- a/src/ls.c
+++ b/src/ls.c
@@ -2715,7 +2715,7 @@ gobble_file (char const *name, enum filetype type, ino_t inode,
                 ls fail just because the file (even a command line argument)
                 isn't on the right type of file system.  I.e., a getfilecon
                 failure isn't in the same class as a stat failure.  */
-             if (errno == ENOTSUP || errno == ENODATA)
+             if (errno == ENOTSUP || errno == EOPNOTSUPP || errno == ENODATA)
                err = 0;
            }