mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-31 01:35:11 +02:00
- (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@
This commit is contained in:
parent
c79ff0770e
commit
50e3bab242
@ -1,4 +1,9 @@
|
|||||||
20100931
|
2010910
|
||||||
|
- (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@
|
||||||
|
|
||||||
|
20100831
|
||||||
- OpenBSD CVS Sync
|
- OpenBSD CVS Sync
|
||||||
- jmc@cvs.openbsd.org 2010/08/08 19:36:30
|
- jmc@cvs.openbsd.org 2010/08/08 19:36:30
|
||||||
[ssh-keysign.8 ssh.1 sshd.8]
|
[ssh-keysign.8 ssh.1 sshd.8]
|
||||||
|
@ -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>
|
* Copyright (c) 2005 Daniel Walsh <dwalsh@redhat.com>
|
||||||
@ -45,7 +45,7 @@ ssh_selinux_enabled(void)
|
|||||||
static int enabled = -1;
|
static int enabled = -1;
|
||||||
|
|
||||||
if (enabled == -1) {
|
if (enabled == -1) {
|
||||||
enabled = is_selinux_enabled();
|
enabled = (is_selinux_enabled() == 1);
|
||||||
debug("SELinux support %s", enabled ? "enabled" : "disabled");
|
debug("SELinux support %s", enabled ? "enabled" : "disabled");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user