[newlib-cygwin] Cygwin: spawn: revert incorrect restriction of permissions

Corinna Vinschen corinna@sourceware.org
Sun Jan 27 21:42:00 GMT 2019


https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=3b21333172e57f56fa44ce63a10c368289701062

commit 3b21333172e57f56fa44ce63a10c368289701062
Author: Corinna Vinschen <corinna@vinschen.de>
Date:   Sun Jan 27 22:42:41 2019 +0100

    Cygwin: spawn: revert incorrect restriction of permissions
    
    Signed-off-by: Corinna Vinschen <corinna@vinschen.de>

Diff:
---
 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 cf2a08e..6b564dc 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;
 }



More information about the Cygwin-cvs mailing list