[cups-devel] [UNKN] STR #4611: Use getgrouplist() instead of getgrnam()

Tim Waugh noreply at cups.org
Mon Mar 23 10:39:01 PDT 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

I've had a report that using getgrnam() can be unreliable:
  https://bugzilla.redhat.com/show_bug.cgi?id=1204379

and that the more common case of count(groups user is in) < count(users in
group) would be speeded up by the use of getgrouplist().

A patch is available at the original bug report. What do you think about
this general approach?

Link: https://www.cups.org/str.php?L4611
Version: 2.0-current
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: GPGTools - https://gpgtools.org

iQIcBAEBCgAGBQJVEE+1AAoJENujp6sI12IjGO0QAIP+9ksVsMhTQoSNSp9uFj0x
Jwk1x3XzNwJ2Rmnx3WYH1+sHcF2Toq+m5w0kIEUtHMYOmNIF7Yaswv7vbX1lC+7H
G0JhKAYhDpLNBHKPzmBuTfxRghwk2lL29bynoKPFO0LxTQID7Kp7Sy1zUI92oC8w
JIQp8NmTFQb0nw0hI2Snw3LleABKiYbgX05INGBSFLUTumgWoD+INo/XsJ2PanXv
BViXuOw+epkTx7nm4YgPfrYcpnIEw2a7GoIplF+UkGglPmItr2igaBTX9kCVc0PQ
qvNxKwW+4jfobuE0Kg6Jp3VdHEBK+v/ifqWuROjEoSZJMl1GFzjjmX2RzAovByew
3JoLIbp008poMTIHc3Fq3fT9X9WfHj6LjXedQW6HHCY3fXntkT8nHceppKBj+h54
24rh8Uu+pCZ2s1aYFZ1MTh9hl6LNfyJuBzHb4jPBc5XBaa4EtYpgfOk+cLMwHdh8
dxji8+Z1hiOSBRC6IU4R9ESmzN6hJWukOhmVJsyDBLzbp7sov7Fj468TOUKkTO/h
j8ZYZ2xIJalsA5DKhxkh7QEn+7miAMrqQzRzwgl3cS/7Yys6wEr7cfnzChYg1tHF
K4HGUGM+PxP0QetMS2w/OE1W0utt7iPGmOOBfdahQ7YGBlgjUpexGvZt2HW4GsTs
qFuWLQZlFtpVThb/TU18
=AfYj
-----END PGP SIGNATURE-----




More information about the cups mailing list