Bug 13367 - getent initgroups does not exit 3
Summary: getent initgroups does not exit 3
Status: RESOLVED FIXED
Alias: None
Product: glibc
Classification: Unclassified
Component: libc (show other bugs)
Version: 2.14
: P2 normal
Target Milestone: ---
Assignee: Ulrich Drepper
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-31 14:46 UTC by Mark R Bannister
Modified: 2014-06-27 11:41 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:
fweimer: security-


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark R Bannister 2011-10-31 14:46:16 UTC
nss/getent.c initgroups_keys() does nothing if number==0.  What it should do is the same as netgroup_keys(), i.e. display to stderr "Enumeration not supported on initgroups" and return with status 3.
Comment 1 Ulrich Drepper 2011-10-31 20:50:21 UTC
I checked in a patch.