diff options
author | Conrad Scott <conrad.scott@dsl.pipex.com> | 2002-07-03 19:56:35 +0400 |
---|---|---|
committer | Conrad Scott <conrad.scott@dsl.pipex.com> | 2002-07-03 19:56:35 +0400 |
commit | bd86408f5893ab5369f9e4eebbfce1fa8424ce51 (patch) | |
tree | 6c4ecdf53d9bfe86bb35389e2db702ee5fcbb7e8 /winsup | |
parent | 88c9830f595e8cb77078d400bad2da5bb0d6dbfd (diff) |
* tty.cc (tty::common_init): Reverse logic of cygserver check in
call to SetKernelObjectSecurity.
Diffstat (limited to 'winsup')
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/tty.cc | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 8f3f2efd4..c4ed4aa6e 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -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. diff --git a/winsup/cygwin/tty.cc b/winsup/cygwin/tty.cc index 8b99e005b..c8760b732 100644 --- a/winsup/cygwin/tty.cc +++ b/winsup/cygwin/tty.cc @@ -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"); |