From a76877e977ff264e44c4d9278920fe511fc73dd4 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Fri, 23 Feb 2007 15:15:50 +0000 Subject: Throughout remove all usage of wincap.has_security. * environ.cc (environ_init): Drop setting allow_ntsec here. * grp.cc (initgroups32): Drop usage of label "out". * security.cc (allow_ntsec): Set to true by default. * syscalls.cc (seteuid32): Remove label success_9x. * wincap.cc: Remove has_security throughout. * wincap.h: Ditto. --- winsup/cygwin/fhandler_tty.cc | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'winsup/cygwin/fhandler_tty.cc') diff --git a/winsup/cygwin/fhandler_tty.cc b/winsup/cygwin/fhandler_tty.cc index 0121d62b4..6a58ab0af 100644 --- a/winsup/cygwin/fhandler_tty.cc +++ b/winsup/cygwin/fhandler_tty.cc @@ -1,7 +1,7 @@ /* fhandler_tty.cc Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, - 2006 Red Hat, Inc. + 2006, 2007 Red Hat, Inc. This file is part of Cygwin. @@ -535,8 +535,7 @@ fhandler_tty_slave::open (int flags, mode_t) from_master_local = to_master_local = NULL; #ifdef USE_SERVER - if (!wincap.has_security () - || cygserver_running == CYGSERVER_UNAVAIL + if (cygserver_running == CYGSERVER_UNAVAIL || !cygserver_attach_tty (&from_master_local, &to_master_local)) #endif { @@ -1384,11 +1383,8 @@ fhandler_pty_master::setup (bool ispty) In the future the cygserver may allow access by others. */ #ifdef USE_SERVER - if (wincap.has_security ()) - { - if (cygserver_running == CYGSERVER_UNKNOWN) - cygserver_init (); - } + if (cygserver_running == CYGSERVER_UNKNOWN) + cygserver_init (); #endif /* Create synchronisation events */ -- cgit v1.2.3