diff options
author | Jim Meyering <meyering@redhat.com> | 2009-10-07 22:29:12 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2009-10-09 14:33:10 +0200 |
commit | 57d9263ca54a35e76fc8ed2ec3ec8dc36f8da60b (patch) | |
tree | 251f0465704b99f7f473ac23893dd6474c01c507 /src | |
parent | e11a0319b3b1af2c521cdcf37e09a02b157c3e76 (diff) | |
download | coreutils-57d9263ca54a35e76fc8ed2ec3ec8dc36f8da60b.tar.xz |
ls: remove explicit getfilecon work-around
* src/ls.c (gobble_file): Remove l?getfilecon work-around,
now that the gnulib wrappers handle it for us.
Diffstat (limited to 'src')
-rw-r--r-- | src/ls.c | 11 |
1 files changed, 0 insertions, 11 deletions
@@ -2802,17 +2802,6 @@ gobble_file (char const *name, enum filetype type, ino_t inode, : lgetfilecon (absolute_name, &f->scontext)); err = (attr_len < 0); - /* Contrary to its documented API, getfilecon may return 0, - yet set f->scontext to NULL (on at least Debian's libselinux1 - 2.0.15-2+b1), so work around that bug. - FIXME: remove this work-around in 2011, or whenever affected - versions of libselinux are long gone. */ - if (attr_len == 0) - { - err = 0; - f->scontext = xstrdup ("unlabeled"); - } - if (err == 0) have_selinux = ! STREQ ("unlabeled", f->scontext); else |