* tty.cc (tty::common_init): Reverse logic of cygserver check in

call to SetKernelObjectSecurity.
This commit is contained in:
Conrad Scott 2002-07-03 15:56:35 +00:00
parent 88c9830f59
commit bd86408f58
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2002-07-03 Conrad Scott <conrad.scott@dsl.pipex.com>
* tty.cc (tty::common_init): Reverse logic of cygserver check in
call to SetKernelObjectSecurity.
2002-07-03 Thomas Pfaff <tpfaff@gmx.net>
* autoload.cc (WSAEventSelect): Define new autoload function.

View File

@ -399,7 +399,7 @@ tty::common_init (fhandler_pty_master *ptym)
/* FIXME: we shold NOT set the security wide open when the
daemon is running
*/
if (wincap.has_security () && cygserver_running==CYGSERVER_OK &&
if (wincap.has_security () && cygserver_running != CYGSERVER_OK &&
(SetKernelObjectSecurity (hMainProc, DACL_SECURITY_INFORMATION,
get_null_sd ()) == FALSE))
system_printf ("Can't set process security, %E");