setregid() and setreuid() patch

2003-01-24 Thread Jason Tishler
The attached patch implements setregid() and setreuid() as recommended by Pierre in: http://cygwin.com/ml/cygwin-developers/2003-01/msg00115.html 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 8

Re: setregid() and setreuid() patch

2003-01-24 Thread Jason Tishler
On Fri, Jan 24, 2003 at 09:55:20AM -0500, Jason Tishler wrote: > The attached patch implements setregid() and setreuid() as recommended > by Pierre in: > > http://cygwin.com/ml/cygwin-developers/2003-01/msg00115.html Oops. I just realized that I need to submit a corresponding newlib patch to

Re: setregid() and setreuid() patch

2003-01-24 Thread Corinna Vinschen
On Fri, Jan 24, 2003 at 09:55:20AM -0500, Jason Tishler wrote: > The attached patch implements setregid() and setreuid() as recommended > by Pierre in: > > http://cygwin.com/ml/cygwin-developers/2003-01/msg00115.html Applied with minor changes: > +setreuid (__uid32_t ruid, __uid32_t euid)

Re: setregid() and setreuid() patch

2003-01-24 Thread Corinna Vinschen
On Fri, Jan 24, 2003 at 10:21:20AM -0500, Jason Tishler wrote: > Oops. I just realized that I need to submit a corresponding newlib > patch to declare setregid() and setreuid(). Too late ;-) Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developer

Re: setregid() and setreuid() patch

2003-01-24 Thread Jason Tishler
Corinna, On Fri, Jan 24, 2003 at 04:26:36PM +0100, Corinna Vinschen wrote: > Applied with minor changes: > > > +setreuid (__uid32_t ruid, __uid32_t euid) > ^ >__uid16_t Oops, yank and put error. Thanks for cleaning up after me. > I've also applied the missing d

Re: nanosleep() patch

2003-01-24 Thread Jason Tishler
On Wed, Jan 22, 2003 at 11:44:02AM +0100, Corinna Vinschen wrote: > I like that patch. Applied. I just realized that nanosleep() is not getting declared. Is the attached patch the best solution? If so, then I will submit a patch to newlib. If not, what is? Thanks, Jason -- PGP/GPG Key: http

Re: nanosleep() patch

2003-01-24 Thread Corinna Vinschen
On Fri, Jan 24, 2003 at 10:58:15AM -0500, Jason Tishler wrote: > On Wed, Jan 22, 2003 at 11:44:02AM +0100, Corinna Vinschen wrote: > > I like that patch. Applied. > > I just realized that nanosleep() is not getting declared. Is the > attached patch the best solution? If so, then I will submit a

Re: nanosleep() patch

2003-01-24 Thread Jason Tishler
On Fri, Jan 24, 2003 at 05:06:27PM +0100, Corinna Vinschen wrote: > I think adding a > > #if defined(__CYGWIN__) && !defined(_POSIX_TIMERS) > int _EXFUN(nanosleep, (const struct timespec *rqtp, struct timespec *rmtp)); > #endif > > would be more adequate so far. > > Adding all missing POSIX ti

setuid on Win95

2003-01-24 Thread Pierre A. Humblet
Corinna, This patch brings seteuid on Win95 up to Posix and fixes a handle leak on NT. During testing (WinME) I noticed that "id" has stopped reporting the supplementary groups present in /etc/group. Thus it is likely that the suppl. groups are broken in is_grp_member() on NT. Pierre 2003/01/2