From 48ad81fa2fcabe1a371813d52087e27c30d6e32a Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 3 Oct 2004 21:33:28 +0000 Subject: [PATCH] Update. 2004-10-03 Juerg Billeter * nscd/nscd_initgroups.c (__nscd_getgrouplist): Return -1 if nscd can't be used. --- ChangeLog | 5 +++++ nscd/nscd_initgroups.c | 7 +++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index b454dc3..b9d3a13 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-10-03 Juerg Billeter + + * nscd/nscd_initgroups.c (__nscd_getgrouplist): Return -1 if nscd + can't be used. + 2004-10-03 Ulrich Drepper Dynamically create new threads if necessary. diff --git a/nscd/nscd_initgroups.c b/nscd/nscd_initgroups.c index 3e4d926..ce44f65 100644 --- a/nscd/nscd_initgroups.c +++ b/nscd/nscd_initgroups.c @@ -81,8 +81,11 @@ __nscd_getgrouplist (const char *user, gid_t group, long int *size, sock = __nscd_open_socket (user, userlen, INITGROUPS, &initgr_resp_mem, sizeof (initgr_resp_mem)); if (sock == -1) - /* nscd not running or wrong version or hosts caching disabled. */ - __nss_not_use_nscd_group = 1; + { + /* nscd not running or wrong version or hosts caching disabled. */ + __nss_not_use_nscd_group = 1; + goto out; + } initgr_resp = &initgr_resp_mem; } -- 2.7.4