From 3b21333172e57f56fa44ce63a10c368289701062 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Sun, 27 Jan 2019 22:42:41 +0100 Subject: [PATCH] Cygwin: spawn: revert incorrect restriction of permissions Signed-off-by: Corinna Vinschen --- winsup/cygwin/dcrt0.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc index cf2a08eb1..6b564dced 100644 --- a/winsup/cygwin/dcrt0.cc +++ b/winsup/cygwin/dcrt0.cc @@ -637,8 +637,7 @@ child_info_fork::handle_fork () bool child_info_spawn::get_parent_handle () { - parent = OpenProcess (PROCESS_QUERY_LIMITED_INFORMATION, FALSE, - parent_winpid); + parent = OpenProcess (PROCESS_VM_READ, FALSE, parent_winpid); moreinfo->myself_pinfo = NULL; return !!parent; }