* tty.cc (tty::common_init): Reverse logic of cygserver check in
call to SetKernelObjectSecurity.
This commit is contained in:
parent
88c9830f59
commit
bd86408f58
|
@ -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.
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue