public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/17363] New: getnetgrent returns a truncated list if one of the netgroups in its tree is empty
@ 2014-09-08 17:09 siddhesh at redhat dot com
2014-09-10 16:28 ` [Bug libc/17363] " cvs-commit at gcc dot gnu.org
2014-09-10 16:30 ` siddhesh at redhat dot com
0 siblings, 2 replies; 3+ messages in thread
From: siddhesh at redhat dot com @ 2014-09-08 17:09 UTC (permalink / raw)
To: glibc-bugs
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug libc/17363] getnetgrent returns a truncated list if one of the netgroups in its tree is empty
2014-09-08 17:09 [Bug libc/17363] New: getnetgrent returns a truncated list if one of the netgroups in its tree is empty siddhesh at redhat dot com
@ 2014-09-10 16:28 ` cvs-commit at gcc dot gnu.org
2014-09-10 16:30 ` siddhesh at redhat dot com
1 sibling, 0 replies; 3+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2014-09-10 16:28 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=17363
--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via 58b930ae216bfa98cd60212b954b07b9963d6d04 (commit)
from 71ae86478edc7b21872464f43fb29ff650c1681a (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=58b930ae216bfa98cd60212b954b07b9963d6d04
commit 58b930ae216bfa98cd60212b954b07b9963d6d04
Author: Siddhesh Poyarekar <siddhesh@redhat.com>
Date: Wed Sep 10 21:51:50 2014 +0530
Return failure in getnetgrent only when all netgroups have been searched
(#17363)
The netgroups lookup code fails when one of the groups in the search
tree is empty. In such a case it only returns the leaves of the tree
after the blank netgroup. This is because the line parser returns a
NOTFOUND status when the netgroup exists but is empty. The
__getnetgrent_internal implementation needs to be fixed to try
remaining groups if the current group is entry. This patch implements
this fix. Tested on x86_64.
[BZ #17363]
* inet/getnetgrent_r.c (__internal_getnetgrent_r): Try next
group if the current group is empty.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 6 ++++++
NEWS | 6 ++++++
inet/getnetgrent_r.c | 5 ++++-
3 files changed, 16 insertions(+), 1 deletions(-)
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug libc/17363] getnetgrent returns a truncated list if one of the netgroups in its tree is empty
2014-09-08 17:09 [Bug libc/17363] New: getnetgrent returns a truncated list if one of the netgroups in its tree is empty siddhesh at redhat dot com
2014-09-10 16:28 ` [Bug libc/17363] " cvs-commit at gcc dot gnu.org
@ 2014-09-10 16:30 ` siddhesh at redhat dot com
1 sibling, 0 replies; 3+ messages in thread
From: siddhesh at redhat dot com @ 2014-09-10 16:30 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=17363
Siddhesh Poyarekar <siddhesh at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #2 from Siddhesh Poyarekar <siddhesh at redhat dot com> ---
Fixed in master.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-09-10 16:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-08 17:09 [Bug libc/17363] New: getnetgrent returns a truncated list if one of the netgroups in its tree is empty siddhesh at redhat dot com
2014-09-10 16:28 ` [Bug libc/17363] " cvs-commit at gcc dot gnu.org
2014-09-10 16:30 ` siddhesh at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).