diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2011-04-28 09:30:36 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2011-04-28 09:30:36 +0000 |
commit | 1754539e56dcde666394354ec603d5524b0d3e90 (patch) | |
tree | 23995f49c74ee39bf46a29d39bd1aa8ccc8e0e86 /winsup/cygwin/fhandler_tty.cc | |
parent | 158e516b9dcb2993e5f062f2feeee5dbd4ee787a (diff) | |
download | newlib-1754539e56dcde666394354ec603d5524b0d3e90.zip newlib-1754539e56dcde666394354ec603d5524b0d3e90.tar.gz newlib-1754539e56dcde666394354ec603d5524b0d3e90.tar.bz2 |
* advapi32.cc (InitializeAcl): Remove.
(AddAce): Remove.
(FindFirstFreeAce): Remove.
(GetAce): Remove.
(InitializeSecurityDescriptor): Remove.
(OpenProcessToken): Remove.
* dcrt0.cc: Replace above functions throughout with their ntdll.dll
equivalent.
* fhandler_tty.cc: Ditto.
* flock.cc: Ditto.
* pinfo.cc: Ditto. Drop unnecessary error handling.
* sec_acl.cc: Ditto.
* sec_auth.cc: Ditto.
* sec_helper.cc: Ditto.
* security.cc: Ditto.
Diffstat (limited to 'winsup/cygwin/fhandler_tty.cc')
-rw-r--r-- | winsup/cygwin/fhandler_tty.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/winsup/cygwin/fhandler_tty.cc b/winsup/cygwin/fhandler_tty.cc index 478397a..20ab959 100644 --- a/winsup/cygwin/fhandler_tty.cc +++ b/winsup/cygwin/fhandler_tty.cc @@ -529,7 +529,7 @@ fhandler_tty_slave::open (int flags, mode_t) /* Create security attribute. Default permissions are 0620. */ security_descriptor sd; sd.malloc (sizeof (SECURITY_DESCRIPTOR)); - InitializeSecurityDescriptor (sd, SECURITY_DESCRIPTOR_REVISION); + RtlCreateSecurityDescriptor (sd, SECURITY_DESCRIPTOR_REVISION); SECURITY_ATTRIBUTES sa = { sizeof (SECURITY_ATTRIBUTES), NULL, TRUE }; if (!create_object_sd_from_attribute (NULL, myself->uid, myself->gid, S_IFCHR | S_IRUSR | S_IWUSR | S_IWGRP, @@ -1305,7 +1305,7 @@ fhandler_tty_slave::fchmod (mode_t mode) goto errout; } sd.malloc (sizeof (SECURITY_DESCRIPTOR)); - InitializeSecurityDescriptor (sd, SECURITY_DESCRIPTOR_REVISION); + RtlCreateSecurityDescriptor (sd, SECURITY_DESCRIPTOR_REVISION); if (!get_object_attribute (input_available_event, &uid, &gid, NULL) && !create_object_sd_from_attribute (NULL, uid, gid, S_IFCHR | mode, sd)) ret = fch_set_sd (sd, false); @@ -1334,7 +1334,7 @@ fhandler_tty_slave::fchown (__uid32_t uid, __gid32_t gid) goto errout; } sd.malloc (sizeof (SECURITY_DESCRIPTOR)); - InitializeSecurityDescriptor (sd, SECURITY_DESCRIPTOR_REVISION); + RtlCreateSecurityDescriptor (sd, SECURITY_DESCRIPTOR_REVISION); if (!get_object_attribute (input_available_event, &o_uid, &o_gid, &mode)) { if ((uid == ILLEGAL_UID || uid == o_uid) @@ -1796,7 +1796,7 @@ fhandler_pty_master::setup (bool ispty) /* Create security attribute. Default permissions are 0620. */ sd.malloc (sizeof (SECURITY_DESCRIPTOR)); - InitializeSecurityDescriptor (sd, SECURITY_DESCRIPTOR_REVISION); + RtlCreateSecurityDescriptor (sd, SECURITY_DESCRIPTOR_REVISION); if (!create_object_sd_from_attribute (NULL, myself->uid, myself->gid, S_IFCHR | S_IRUSR | S_IWUSR | S_IWGRP, sd)) |