summaryrefslogtreecommitdiff
path: root/sed/execute.c
diff options
context:
space:
mode:
authorPaolo Bonzini <bonzini@gnu.org>2009-12-07 14:40:18 +0100
committerPaolo Bonzini <bonzini@gnu.org>2009-12-07 14:40:18 +0100
commit5d7d2b1cc26101ff5c7f549f47b1b948dcafc20c (patch)
treea5f1f6d6b8f150f9981a60f3bd4bb3bc69f345fb /sed/execute.c
parent896b69691257092f2315d12a7e35ca117b6c5f6d (diff)
downloadsed-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.c2
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)