Re: Problem with id when mgetgroups returns no groups.

2009-12-04 Thread scott . gnu . 2009
On Fri, Dec 04, 2009 at 07:01:37AM -0700, Eric Blake wrote: One failure case is indeed errno==ENOSYS. (By the way, which system did you find this on?) Found on a custom embedded Linux server. if mgetgroups doesn't find any groups, "groups" will not be changed and therefore still contain an u

Re: Problem with id when mgetgroups returns no groups.

2009-12-04 Thread Pádraig Brady
Eric Blake wrote: > I'd like to push this as the fix. However, it would be nicer to credit a > full name, rather than just "Scott", for listing you in THANKS. The fix looks fine, thanks. whois says it's: Scott Harrison cheers, Pádraig.

Re: Problem with id when mgetgroups returns no groups.

2009-12-04 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 [adding gnulib, since mgetgroups now lives in gnulib] According to scott.gnu.2...@scottrix.co.uk on 12/4/2009 3:55 AM: > All, > > In coreutils 8.1, src/id.c line 296: > > gid_t *groups; > int i; > > int n_groups = mgetgroups (usernam