Author: arekm
Date: Sun Feb 18 14:01:23 2007
New Revision: 8277

Modified:
   nss_python/trunk/src/nss_grp.c
   nss_python/trunk/src/nss_pwd.c
   nss_python/trunk/src/nss_spwd.c
Log:
Return NSS_STATUS_UNAVAIL if set*ent() python scripts do not return True.

Modified: nss_python/trunk/src/nss_grp.c
==============================================================================
--- nss_python/trunk/src/nss_grp.c      (original)
+++ nss_python/trunk/src/nss_grp.c      Sun Feb 18 14:01:23 2007
@@ -224,7 +224,7 @@
        if (pValue == Py_True)
                return NSS_STATUS_SUCCESS;
 
-       return NSS_STATUS_SUCCESS;
+       return NSS_STATUS_UNAVAIL;
 }
 
 

Modified: nss_python/trunk/src/nss_pwd.c
==============================================================================
--- nss_python/trunk/src/nss_pwd.c      (original)
+++ nss_python/trunk/src/nss_pwd.c      Sun Feb 18 14:01:23 2007
@@ -219,7 +219,7 @@
         if (pValue == Py_True)
                 return NSS_STATUS_SUCCESS;
 
-       return NSS_STATUS_SUCCESS;
+       return NSS_STATUS_UNAVAIL;
 }
 
 NSS_STATUS _nss_python_endpwent (void) {

Modified: nss_python/trunk/src/nss_spwd.c
==============================================================================
--- nss_python/trunk/src/nss_spwd.c     (original)
+++ nss_python/trunk/src/nss_spwd.c     Sun Feb 18 14:01:23 2007
@@ -230,7 +230,8 @@
 
        if (pValue == Py_True)
                return NSS_STATUS_SUCCESS;
-       return NSS_STATUS_NOTFOUND;
+
+       return NSS_STATUS_UNAVAIL;
 }
 
 NSS_STATUS _nss_python_endspwent (void) {
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to