summaryrefslogtreecommitdiff
path: root/openbsd-compat
diff options
context:
space:
mode:
authordtucker <dtucker>2010-09-10 00:30:25 +0000
committerdtucker <dtucker>2010-09-10 00:30:25 +0000
commitbcbeb6138acf57e7f267bb6681ea1a19b0896e81 (patch)
tree7e593a14fdcadeac700acfa07b1037fc53c8cc92 /openbsd-compat
parent4a5b2688b8ffcb62e97f6dc94931fe694150a3e2 (diff)
downloadopenssh-bcbeb6138acf57e7f267bb6681ea1a19b0896e81.tar.gz
- (dtucker) [openbsd-compat/port-linux.c] Check is_selinux_enabled for exact
return code since it can apparently return -1 under some conditions. From openssh bugs werbittewas de, ok djm@
Diffstat (limited to 'openbsd-compat')
-rw-r--r--openbsd-compat/port-linux.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsd-compat/port-linux.c b/openbsd-compat/port-linux.c
index 89b9a734..86d16dc6 100644
--- a/openbsd-compat/port-linux.c
+++ b/openbsd-compat/port-linux.c
@@ -1,4 +1,4 @@
-/* $Id: port-linux.c,v 1.8 2010/03/01 04:52:50 dtucker Exp $ */
+/* $Id: port-linux.c,v 1.9 2010/09/10 00:30:25 dtucker Exp $ */
/*
* Copyright (c) 2005 Daniel Walsh <dwalsh@redhat.com>
@@ -45,7 +45,7 @@ ssh_selinux_enabled(void)
static int enabled = -1;
if (enabled == -1) {
- enabled = is_selinux_enabled();
+ enabled = (is_selinux_enabled() == 1);
debug("SELinux support %s", enabled ? "enabled" : "disabled");
}