diff options
author | Conrad Scott <conrad.scott@dsl.pipex.com> | 2002-07-03 15:56:35 +0000 |
---|---|---|
committer | Conrad Scott <conrad.scott@dsl.pipex.com> | 2002-07-03 15:56:35 +0000 |
commit | bd86408f5893ab5369f9e4eebbfce1fa8424ce51 (patch) | |
tree | 6c4ecdf53d9bfe86bb35389e2db702ee5fcbb7e8 | |
parent | 88c9830f595e8cb77078d400bad2da5bb0d6dbfd (diff) | |
download | newlib-bd86408f5893ab5369f9e4eebbfce1fa8424ce51.zip newlib-bd86408f5893ab5369f9e4eebbfce1fa8424ce51.tar.gz newlib-bd86408f5893ab5369f9e4eebbfce1fa8424ce51.tar.bz2 |
* tty.cc (tty::common_init): Reverse logic of cygserver check in
call to SetKernelObjectSecurity.
-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 8f3f2ef..c4ed4aa 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 8b99e00..c8760b7 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"); |