This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/17363] New: getnetgrent returns a truncated list if one of the netgroups in its tree is empty


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]