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:
authorChristopher Faylor <me@cgf.cx>2002-06-19 19:27:27 +0400
committerChristopher Faylor <me@cgf.cx>2002-06-19 19:27:27 +0400
commit03a2ce9a3623dddc5ff7db9a3c18e2eb359e4afe (patch)
treeb19c8c77cda62398c18f8b127a7347096f0af86e /winsup/cygwin/grp.cc
parent834224ab85c94d4764d67670a880484ce0785a62 (diff)
Use hMainProc where appropriate, throughout.
* environ.cc (spenv::retrieve): Add debugging statements. * pinfo.cc (set_myself): Don't call strace.hello if already stracing. * strace.cc (strace): Move NO_COPY keyword so that it will actually take effect.
Diffstat (limited to 'winsup/cygwin/grp.cc')
-rw-r--r--winsup/cygwin/grp.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/grp.cc b/winsup/cygwin/grp.cc
index 54725c227..62e0e76cf 100644
--- a/winsup/cygwin/grp.cc
+++ b/winsup/cygwin/grp.cc
@@ -177,7 +177,7 @@ read_etc_group ()
cygsid tg;
DWORD siz;
- if (OpenProcessToken (GetCurrentProcess (), TOKEN_QUERY, &ptok))
+ if (OpenProcessToken (hMainProc, TOKEN_QUERY, &ptok))
{
if (GetTokenInformation (ptok, TokenPrimaryGroup, &tg,
sizeof tg, &siz)