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>2002-01-21 23:51:30 +0300
committerCorinna Vinschen <corinna@vinschen.de>2002-01-21 23:51:30 +0300
commitac11ec8845879fc87e25ba80086235735e400799 (patch)
treee204eebb3a2cf4bef1ec52d1f9006f2af1f46468 /winsup/cygwin/syscalls.cc
parent1c6577408e628a7beeb394351babe2c894d8475f (diff)
* grp.cc (getgrent): Don't return default gid entry when ntsec is on.
* syscalls.cc (setegid): Don't set primary group in process token.
Diffstat (limited to 'winsup/cygwin/syscalls.cc')
-rw-r--r--winsup/cygwin/syscalls.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc
index 1111d1d7d..a8b2eb2e3 100644
--- a/winsup/cygwin/syscalls.cc
+++ b/winsup/cygwin/syscalls.cc
@@ -2102,6 +2102,7 @@ setegid (gid_t gid)
return -1;
}
myself->gid = gid;
+#if 0 // Setting the primary group in token here isn't foolproof enough.
if (allow_ntsec)
{
cygsid gsid;
@@ -2123,6 +2124,7 @@ setegid (gid_t gid)
}
}
}
+#endif
}
}
else