diff options
author | Paolo Bonzini <bonzini@gnu.org> | 2009-12-07 14:40:18 +0100 |
---|---|---|
committer | Paolo Bonzini <bonzini@gnu.org> | 2009-12-07 14:40:18 +0100 |
commit | 5d7d2b1cc26101ff5c7f549f47b1b948dcafc20c (patch) | |
tree | a5f1f6d6b8f150f9981a60f3bd4bb3bc69f345fb /sed/execute.c | |
parent | 896b69691257092f2315d12a7e35ca117b6c5f6d (diff) | |
download | sed-5d7d2b1cc26101ff5c7f549f47b1b948dcafc20c.tar.gz |
fix debian bug 559539
2009-12-07 Clint Adams <schizo@debian.org> (tiny change)
* sed/execute.c (open_next_file): If is_selinux_enabled returns -1,
treat it as "disabled".
Diffstat (limited to 'sed/execute.c')
-rw-r--r-- | sed/execute.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sed/execute.c b/sed/execute.c index 28e520d..c432fbe 100644 --- a/sed/execute.c +++ b/sed/execute.c @@ -745,7 +745,7 @@ open_next_file(name, input) panic(_("couldn't edit %s: not a regular file"), input->in_file_name); #ifndef BOOTSTRAP - if (is_selinux_enabled ()) + if (is_selinux_enabled () > 0) { security_context_t con; if (getfilecon (input->in_file_name, &con) != -1) |