lists.arthurdejong.org
RSS feed

nss-pam-ldapd commit: r1245 - nss-pam-ldapd/nss

[Date Prev][Date Next] [Thread Prev][Thread Next]

nss-pam-ldapd commit: r1245 - nss-pam-ldapd/nss



Author: arthur
Date: Fri Oct  8 13:24:38 2010
New Revision: 1245
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?view=rev&revision=1245

Log:
correctly name shared file handle

Modified:
   nss-pam-ldapd/nss/services.c

Modified: nss-pam-ldapd/nss/services.c
==============================================================================
--- nss-pam-ldapd/nss/services.c        Fri Oct  8 12:23:06 2010        (r1244)
+++ nss-pam-ldapd/nss/services.c        Fri Oct  8 13:24:38 2010        (r1245)
@@ -54,7 +54,6 @@
   NSS_BYGEN(NSLCD_ACTION_SERVICE_BYNAME,
             WRITE_STRING(fp,name);WRITE_STRING(fp,protocol),
             read_servent(fp,result,buffer,buflen,errnop));
-
 }
 
 /* get a service entry by port and protocol */
@@ -68,12 +67,12 @@
 }
 
 /* thread-local file pointer to an ongoing request */
-static __thread TFILE *protoentfp;
+static __thread TFILE *serventfp;
 
 /* open request to get all services */
 nss_status_t _nss_ldap_setservent(int UNUSED(stayopen))
 {
-  NSS_SETENT(protoentfp);
+  NSS_SETENT(serventfp);
 }
 
 /* read a single returned service definition */
@@ -81,12 +80,12 @@
         struct servent *result,
         char *buffer,size_t buflen,int *errnop)
 {
-  NSS_GETENT(protoentfp,NSLCD_ACTION_SERVICE_ALL,
-             read_servent(protoentfp,result,buffer,buflen,errnop));
+  NSS_GETENT(serventfp,NSLCD_ACTION_SERVICE_ALL,
+             read_servent(serventfp,result,buffer,buflen,errnop));
 }
 
 /* close the stream opened by setservent() above */
 nss_status_t _nss_ldap_endservent(void)
 {
-  NSS_ENDENT(protoentfp);
+  NSS_ENDENT(serventfp);
 }
--
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits