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>2003-01-26 09:42:40 +0300
committerChristopher Faylor <me@cgf.cx>2003-01-26 09:42:40 +0300
commit9a751621661bab473334333b4422599bc26164a2 (patch)
tree742a43bdccdc8dec7c86ddf6813f6f82aa465c5a /winsup/cygwin/grp.cc
parent989c97fe141b5869c3dfd438683b14a8bc8453ca (diff)
* uinfo.cc (pwdgrp::load): Regularize strace output. Add warning for
CreateFile failure.
Diffstat (limited to 'winsup/cygwin/grp.cc')
-rw-r--r--winsup/cygwin/grp.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/winsup/cygwin/grp.cc b/winsup/cygwin/grp.cc
index dc93f913c..44abc9745 100644
--- a/winsup/cygwin/grp.cc
+++ b/winsup/cygwin/grp.cc
@@ -116,7 +116,7 @@ internal_getgrsid (cygsid &sid)
if (sid.string (sid_string))
for (int i = 0; i < gr.curr_lines; i++)
if (!strcmp (sid_string, group_buf[i].gr_passwd))
- return group_buf + i;
+ return group_buf + i;
return NULL;
}
@@ -244,9 +244,9 @@ internal_getgroups (int gidsetsize, __gid32_t *grouplist, cygsid * srchsid)
{
/* If impersonated, use impersonation token. */
if (cygheap->user.issetuid ())
- hToken = cygheap->user.token;
+ hToken = cygheap->user.token;
else if (!OpenProcessToken (hMainProc, TOKEN_QUERY, &hToken))
- hToken = NULL;
+ hToken = NULL;
}
if (hToken)
{
@@ -261,7 +261,7 @@ internal_getgroups (int gidsetsize, __gid32_t *grouplist, cygsid * srchsid)
cygsid sid;
if (srchsid)
- {
+ {
for (DWORD pg = 0; pg < groups->GroupCount; ++pg)
if (*srchsid == groups->Groups[pg].Sid)
return 1;
@@ -289,7 +289,7 @@ internal_getgroups (int gidsetsize, __gid32_t *grouplist, cygsid * srchsid)
else
debug_printf ("%d = GetTokenInformation(NULL) %E", size);
if (hToken != cygheap->user.token)
- CloseHandle (hToken);
+ CloseHandle (hToken);
if (cnt)
return cnt;
}