bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: getgroups improvements


From: Eric Blake
Subject: Re: getgroups improvements
Date: Fri, 13 Nov 2009 07:51:51 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Jim Meyering on 11/13/2009 2:14 AM:
>> Any problems with committing this series?
>>
>> Eric Blake (5):
>>       getgroups: fix logic error
>>       getgroups: avoid calling exit
>>       getgroups: provide stub for mingw
>>       getgroups: don't expose GETGROUPS_T to user
>>       mgetgroups: new module, taken from coreutils
> 
> Good catch on that bug fix.
> And hiding GETGROUPS_T is definitely the way to go.
> These changes look fine.  I'll test via coreutils, after you push.

Now pushed, with a bit more tweaking (getugroups also needed a stub for
mingw).  For that matter, I'm thinking of implementing grp.in.h and a
setgroups wrapper to completely kill GETGROUPS_T in coreutils, but haven't
done that for now.

> I guess no one who used the replacement and who had users with 20 or
> more groups ever noticed.

How many users do you know in 20 or more groups? :)  That, and the
replacement doesn't kick in very much these days; none of the machines
that I have access to needed it, as they all handled getgroups(0,ptr)
correctly.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkr9cocACgkQ84KuGfSFAYC/GwCfcYyVHzY5Dlmq1QkJSnUOUOg1
I9YAoL8htw2+a+Loawowhgk0FrJxSLdE
=cEHt
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]