summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2009-10-07 22:29:12 +0200
committerJim Meyering <meyering@redhat.com>2009-10-09 14:33:10 +0200
commit57d9263ca54a35e76fc8ed2ec3ec8dc36f8da60b (patch)
tree251f0465704b99f7f473ac23893dd6474c01c507 /src
parente11a0319b3b1af2c521cdcf37e09a02b157c3e76 (diff)
downloadcoreutils-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.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/ls.c b/src/ls.c
index 30df92c1a..08fdf5fdc 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -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