This is the mail archive of the
cygwin-developers@cygwin.com
mailing list for the Cygwin project.
setregid() and setreuid() implementation proposal
- From: Jason Tishler <jason at tishler dot net>
- To: Cygwin-Developers <cygwin-developers at cygwin dot com>
- Date: Thu, 16 Jan 2003 14:01:19 -0500
- Subject: setregid() and setreuid() implementation proposal
Is the following simplistic setregid() implementation acceptable?
extern "C" int
setregid (__gid16_t rgid, __gid16_t egid)
{
if (rgid != -1)
{
set_errno (EINVAL);
return -1;
}
return setegid (egid);
}
And, likewise for setreuid()?
If so, then I will submit the corresponding patch.
Thanks,
Jason
--
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6