diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-04-17 08:42:06 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-04-17 08:42:06 +0000 |
commit | ef4d5b32b37ba6af985d427ee7c120532d62cc6b (patch) | |
tree | 945c2817fe187e384b324cc877fa75137441d14f /nss/getXXbyYY_r.c | |
parent | f542ba5b79d38e5bafa3fcdcae3742b736175a31 (diff) | |
download | glibc-ef4d5b32b37ba6af985d427ee7c120532d62cc6b.zip glibc-ef4d5b32b37ba6af985d427ee7c120532d62cc6b.tar.gz glibc-ef4d5b32b37ba6af985d427ee7c120532d62cc6b.tar.bz2 |
Update.
2003-04-17 Ulrich Drepper <drepper@redhat.com>
* nss/getXXbyYY_r.c [USE_NSCD] (REENTRANT_NAME): Only retry
contacting nscd if NOT_USENSCD_NAME > 0.
* nss/nsswitch.c (__nss_disable_nscd): New function.
* nss/nsswitch.h: Declare it.
* nss/Versions [GLIBC_PRIVATE]: Export __nss_disable_nscd.
* nscd/nscd.c (main): Call __nss_disable_nscd.
Diffstat (limited to 'nss/getXXbyYY_r.c')
-rw-r--r-- | nss/getXXbyYY_r.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nss/getXXbyYY_r.c b/nss/getXXbyYY_r.c index ba6ffeb..632778d 100644 --- a/nss/getXXbyYY_r.c +++ b/nss/getXXbyYY_r.c @@ -163,7 +163,7 @@ INTERNAL (REENTRANT_NAME) (ADD_PARAMS, LOOKUP_TYPE *resbuf, char *buffer, #endif #ifdef USE_NSCD - if (NOT_USENSCD_NAME && ++NOT_USENSCD_NAME > NSS_NSCD_RETRY) + if (NOT_USENSCD_NAME > 0 && ++NOT_USENSCD_NAME > NSS_NSCD_RETRY) NOT_USENSCD_NAME = 0; if (!NOT_USENSCD_NAME) |