From 9a3c6a6ff602c88d7155139a7d7d0000b7b7e946 Mon Sep 17 00:00:00 2001 From: Siddhesh Poyarekar Date: Thu, 2 Jan 2014 10:05:27 +0530 Subject: 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. --- ChangeLog | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index dd7bd66970..33aa2bd2bf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2013-01-02 Siddhesh Poyarekar + [BZ #16366] + * nscd/netgroupcache.c (do_notfound): New function. + (addgetnetgrentX): Use it. + [BZ # 16365] * nscd/netgroupcache.c (addgetnetgrentX): Break if status is NSS_STATUS_NOTFOUND. -- cgit 1.4.1