[Fedora-directory-commits] ldapserver/ldap/servers/slapd libglobs.c, 1.29, 1.30

Nathan Kinder nkinder at fedoraproject.org
Thu Nov 13 21:56:31 UTC 2008


Author: nkinder

Update of /cvs/dirsec/ldapserver/ldap/servers/slapd
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv558/ldap/servers/slapd

Modified Files:
	libglobs.c 
Log Message:
Resolves: 470393
Summary: nsslapd-timelimit setting should accept a value of -1.



Index: libglobs.c
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/servers/slapd/libglobs.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -r1.29 -r1.30
--- libglobs.c	7 Nov 2008 22:32:57 -0000	1.29
+++ libglobs.c	13 Nov 2008 21:56:29 -0000	1.30
@@ -3018,9 +3018,9 @@
   errno = 0;
   nVal = strtol(value, &endp, 10);
 
-  if ( *endp != '\0' || errno == ERANGE || nVal < 0 ) {
+  if ( *endp != '\0' || errno == ERANGE || nVal < -1 ) {
 	PR_snprintf ( errorbuf, SLAPI_DSE_RETURNTEXT_SIZE,
-			"%s: invalid value \"%s\", time limit must range from 0 to %ld",
+			"%s: invalid value \"%s\", time limit must range from -1 to %ld",
                          attrname, value, LONG_MAX );
         retVal = LDAP_OPERATIONS_ERROR;
         return retVal;




More information about the Fedora-directory-commits mailing list