From 04d2ae9fed5f3229fea740aaa13f1fe65e90b25a Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Thu, 3 Jan 2008 10:34:39 +0000 Subject: only start the NSLCD_ACTION_*_ALL requests with the first call to getent() instead of with setent() to avoid unneeded requests if compat is used (except with netgroups) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@556 ef36b2f9-881f-0410-afb5-c4e39611909c --- nss/aliases.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'nss/aliases.c') diff --git a/nss/aliases.c b/nss/aliases.c index 8f624bf..10d5576 100644 --- a/nss/aliases.c +++ b/nss/aliases.c @@ -2,7 +2,7 @@ aliases.c - NSS lookup functions for aliases database Copyright (C) 2006 West Consulting - Copyright (C) 2006, 2007 Arthur de Jong + Copyright (C) 2006, 2007, 2008 Arthur de Jong This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public @@ -58,12 +58,12 @@ static __thread TFILE *aliasentfp; enum nss_status _nss_ldap_setaliasent(void) { - NSS_SETENT(aliasentfp,NSLCD_ACTION_ALIAS_ALL); + NSS_SETENT(aliasentfp); } enum nss_status _nss_ldap_getaliasent_r(struct aliasent *result,char *buffer,size_t buflen,int *errnop) { - NSS_GETENT(aliasentfp, + NSS_GETENT(aliasentfp,NSLCD_ACTION_ALIAS_ALL, read_aliasent(aliasentfp,result,buffer,buflen,errnop)); } -- cgit v1.2.3