Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2019-02-25 23:06:15 +0300
committerCorinna Vinschen <corinna@vinschen.de>2019-02-25 23:06:15 +0300
commit3b3ba558e90e7ce07eb0b9a5939453d4b90bd5e5 (patch)
tree7d1b2e6dd940dfa3e80c8f2b64f5146b4d009d31 /winsup/cygwin/forkable.cc
parent98afd02be3a507ed09d77eb0cf9569480740edd8 (diff)
Cygwin: use NULL security descriptor in InitializeObjectAttributes
Using sec_none{_nih} is just a roundabout way to specify a NULL SD. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup/cygwin/forkable.cc')
-rw-r--r--winsup/cygwin/forkable.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/winsup/cygwin/forkable.cc b/winsup/cygwin/forkable.cc
index 1067eac85..d1b0f5723 100644
--- a/winsup/cygwin/forkable.cc
+++ b/winsup/cygwin/forkable.cc
@@ -58,8 +58,7 @@ mkdirs (PWCHAR ntdirname, int lastsepcount)
UNICODE_STRING dn;
RtlInitUnicodeString (&dn, ntdirname);
OBJECT_ATTRIBUTES oa;
- InitializeObjectAttributes (&oa, &dn, 0, NULL,
- sec_none_nih.lpSecurityDescriptor);
+ InitializeObjectAttributes (&oa, &dn, 0, NULL, NULL);
HANDLE dh = NULL;
NTSTATUS status;
IO_STATUS_BLOCK iosb;
@@ -765,8 +764,7 @@ dll_list::create_forkables ()
RtlInitUnicodeString (&fn, ntname);
OBJECT_ATTRIBUTES oa;
- InitializeObjectAttributes (&oa, &fn, 0, NULL,
- sec_none_nih.lpSecurityDescriptor);
+ InitializeObjectAttributes (&oa, &fn, 0, NULL, NULL);
HANDLE hlocal = NULL;
NTSTATUS status;
IO_STATUS_BLOCK iosb;