diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2007-02-23 18:15:50 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2007-02-23 18:15:50 +0300 |
commit | a76877e977ff264e44c4d9278920fe511fc73dd4 (patch) | |
tree | 77a3e569e9e5a248cf845f89d7e8eb6ba6193f2f /winsup/cygwin/sec_helper.cc | |
parent | 9fa43ff6c61626df04f9b87c09f5233ba07a608d (diff) |
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.
Diffstat (limited to 'winsup/cygwin/sec_helper.cc')
-rw-r--r-- | winsup/cygwin/sec_helper.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/winsup/cygwin/sec_helper.cc b/winsup/cygwin/sec_helper.cc index c12ff9dc5..a9f11cb6d 100644 --- a/winsup/cygwin/sec_helper.cc +++ b/winsup/cygwin/sec_helper.cc @@ -1,6 +1,6 @@ /* sec_helper.cc: NT security helper functions - Copyright 2000, 2001, 2002, 2003, 2004, 2006 Red Hat, Inc. + Copyright 2000, 2001, 2002, 2003, 2004, 2006, 2007 Red Hat, Inc. Written by Corinna Vinschen <corinna@vinschen.de> @@ -577,8 +577,7 @@ __sec_user (PVOID sa_buf, PSID sid1, PSID sid2, DWORD access2, BOOL inherit) if ((unsigned long) sa_buf % 4) api_fatal ("Incorrectly aligned incoming SA buffer!"); #endif - if (!wincap.has_security () - || !sec_acl (acl, true, true, sid1, sid2, access2)) + if (!sec_acl (acl, true, true, sid1, sid2, access2)) return inherit ? &sec_none : &sec_none_nih; if (!InitializeSecurityDescriptor (psd, SECURITY_DESCRIPTOR_REVISION)) |