summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn David Anglin <dave@hiauly1.hia.nrc.ca>2008-08-04 14:04:44 +0200
committerJim Meyering <meyering@redhat.com>2008-08-05 12:27:18 +0200
commit8c3835bf931b766a9a44368520ea670229e540ed (patch)
treee9d6bfbda1aaa0734f9785f349fe65c4b2e5336f /src
parent273c10fc2c508715f8810eb640d6561bf0caaabf (diff)
downloadcoreutils-8c3835bf931b766a9a44368520ea670229e540ed.tar.xz
ls: ignore spurious getfilecon failure due to lack of SELinux support
* src/ls.c (gobble_file): Upon failed getfilecon, treat an errno value of EOPNOTSUPP just like ENOTSUP. See <http://bugs.debian.org/488549>.
Diffstat (limited to 'src')
-rw-r--r--src/ls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ls.c b/src/ls.c
index fd32730e4..9261f6219 100644
--- 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;
}