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 nscd/16365] nscd goes into infinite loop when netgroup is empty


http://sourceware.org/bugzilla/show_bug.cgi?id=16365

--- 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  9a3c6a6ff602c88d7155139a7d7d0000b7b7e946 (commit)
       via  d41242129ba693cdbc8db85b846fcaccf9f0b7c4 (commit)
      from  ac49ddc4958009fb05ee759be3dfe731d041ca3e (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=9a3c6a6ff602c88d7155139a7d7d0000b7b7e946

commit 9a3c6a6ff602c88d7155139a7d7d0000b7b7e946
Author: Siddhesh Poyarekar <siddhesh@redhat.com>
Date:   Thu Jan 2 10:05:27 2014 +0530

    Fix return code from getent netgroup when the netgroup is not found (bz
#16366)

    nscd incorrectly returns a success even when the netgroup in question
    is not found and adds a positive result in the cache.  this patch
    fixes this behaviour by adding a negative lookup entry to cache and
    returning an error when the netgroup is not found.

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=d41242129ba693cdbc8db85b846fcaccf9f0b7c4

commit d41242129ba693cdbc8db85b846fcaccf9f0b7c4
Author: Siddhesh Poyarekar <siddhesh@redhat.com>
Date:   Thu Jan 2 10:03:12 2014 +0530

    Fix infinite loop in nscd when netgroup is empty (bz #16365)

    Currently, when a user looks up a netgroup that does not have any
    members, nscd goes into an infinite loop trying to find members in the
    group.  This is because it does not handle cases when getnetgrent
    returns an NSS_STATUS_NOTFOUND (which is what it does on empty group).
    Fixed to handle this in the same way as NSS_STATUS_RETURN, similar to
    what getgrent does by itself.

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog            |   10 +++++
 NEWS                 |    2 +-
 nscd/netgroupcache.c |   98 +++++++++++++++++++++++++++++++++----------------
 3 files changed, 77 insertions(+), 33 deletions(-)

-- 
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]