ldap/servers/slapd/libglobs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 5724e02c7f30ef1130764c79b30edd04954663a7
Author: Rich Megginson <rmeggins(a)redhat.com>
Date: Thu Jul 11 10:58:07 2013 -0600
Ticket 47427 - Overflow in nsslapd-disk-monitoring-threshold
Bug Description: The threshold setting was being stored as an "int"
instead
of a PRUint64. Config setting validation was also incomplete.
Fix Description: Fix build warning caused by previous commit.
https://fedorahosted.org/389/ticket/47427
diff --git a/ldap/servers/slapd/libglobs.c b/ldap/servers/slapd/libglobs.c
index c1f92ee..5219f8c 100644
--- a/ldap/servers/slapd/libglobs.c
+++ b/ldap/servers/slapd/libglobs.c
@@ -1679,7 +1679,7 @@ config_set_disk_threshold( const char *attrname, char *value, char
*errorbuf, in
if ( *endp != '\0' || threshold <= 4096 || errno == ERANGE ) {
PR_snprintf ( errorbuf, SLAPI_DSE_RETURNTEXT_SIZE,
- "%s: \"%s\" is invalid, threshold must be greater than 4096
and less then %llu",
+ "%s: \"%s\" is invalid, threshold must be greater than 4096
and less then %lu",
attrname, value, LONG_MAX );
retVal = LDAP_OPERATIONS_ERROR;
return retVal;