diff options
author | John David Anglin <dave@hiauly1.hia.nrc.ca> | 2008-08-04 14:04:44 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2008-08-05 12:27:18 +0200 |
commit | 8c3835bf931b766a9a44368520ea670229e540ed (patch) | |
tree | e9d6bfbda1aaa0734f9785f349fe65c4b2e5336f /src | |
parent | 273c10fc2c508715f8810eb640d6561bf0caaabf (diff) | |
download | coreutils-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |