[PATCH]: Eliminate HAVE_CYGWIN (and _UWIN) around calls to setgroups() [was Re: openssh for UWIN]

Kevin Steves kevin at atomicgears.com
Sun Jun 9 01:59:11 EST 2002


On Sat, Jun 08, 2002 at 12:02:41AM +0200, Corinna Vinschen wrote:
> /*
>  * fake library for ssh
>  *
>  * This file includes a fake setgroups().
>  */
> 
> #include "includes.h"
> 
> #ifndef HAVE_SETGROUPS
> int setgroups (size_t size, const gid_t *list)

int setgroups(int ngroups, const gid_t *gidset)

> {
>   return 0;
> }
> #endif

> ? openbsd-compat/fake-setgroups.c

bsd-misc.c is the best place for that i think.  there's a noop
setlogin() wrapper there too for example.

is there a reason cygwin has initgroups but not setgroups?



More information about the openssh-unix-dev mailing list