This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/17363] New: getnetgrent returns a truncated list if one of the netgroups in its tree is empty
- From: "siddhesh at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Mon, 08 Sep 2014 17:09:41 +0000
- Subject: [Bug libc/17363] New: getnetgrent returns a truncated list if one of the netgroups in its tree is empty
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=17363
Bug ID: 17363
Summary: getnetgrent returns a truncated list if one of the
netgroups in its tree is empty
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: libc
Assignee: siddhesh at redhat dot com
Reporter: siddhesh at redhat dot com
CC: drepper.fsp at gmail dot com
getnetgrent does not return the complete list of entries if one of the
netgroups in its definition tree is empty.
How Reproducible:
Always.
Steps to Reproduce:
Put the following in /etc/netgroup:
netgr gr1 gr2 gr3
gr1 (,u1,)
gr2 (,u2,)
gr3 gr5 gr6
gr5
gr6 (,u3,)
$ getent netgroup netgr
Actual Results:
netgr ( ,u3,)
Expected Result:
netgr ( ,u1,) ( ,u2,) ( ,u3,)
Additional information:
This works correctly with nscd enabled.
--
You are receiving this mail because:
You are on the CC list for the bug.