typo correction in grp.cc

Corinna Vinschen corinna-cygwin@cygwin.com
Mon Jun 16 09:12:00 GMT 2014


On Jun  6 19:08, Denis Excoffier wrote:
> Hello,
> 
> The following patch (or equivalent) is needed in order for /usr/bin/id to return the full set of groups
> in case the user given as argument belongs to more than 10 groups:
> 
> diff -uNr cygwin-snapshot-20140523-1.original/winsup/cygwin/grp.cc cygwin-snapshot-20140523-1.patched/winsup/cygwin/grp.cc
> --- cygwin-snapshot-20140523-1.original/winsup/cygwin/grp.cc	2014-05-23 12:31:13.000000000 +0200
> +++ cygwin-snapshot-20140523-1.patched/winsup/cygwin/grp.cc	2014-05-26 15:08:37.542897300 +0200
> @@ -656,11 +656,11 @@
>  	  groups[cnt] = grp->gr_gid;
>  	++cnt;
>        }
> -  *ngroups = cnt;
>    if (cnt > *ngroups)
>      ret = -1;
>    else
>      ret = cnt;
> +  *ngroups = cnt;
>  
>    syscall_printf ( "%d = getgrouplist(%s, %u, %p, %d)",
>  		  ret, user, gid, groups, *ngroups);
> 
> 
> Please apply.

Done.  Thanks a lot.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20140616/e05a7c9b/attachment.sig>


More information about the Cygwin-patches mailing list