|
|
dc8c34 |
From 730df16e51923cb373a9796dabbd4ce4d2c447e8 Mon Sep 17 00:00:00 2001
|
|
|
dc8c34 |
From: Mark Reynolds <mreynolds@redhat.com>
|
|
|
dc8c34 |
Date: Fri, 26 Jul 2013 12:23:54 -0400
|
|
|
dc8c34 |
Subject: [PATCH 51/99] Ticket 47427 - limits check reported wrong value
|
|
|
dc8c34 |
|
|
|
dc8c34 |
Description: There was a formating error that displayed the wrong value for LONG_MAX
|
|
|
dc8c34 |
|
|
|
dc8c34 |
https://fedorahosted.org/389/ticket/47427
|
|
|
dc8c34 |
(cherry picked from commit e456f868f91d1075777a2ac43fb8145fdd289036)
|
|
|
dc8c34 |
---
|
|
|
dc8c34 |
ldap/servers/slapd/libglobs.c | 4 ++--
|
|
|
dc8c34 |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
dc8c34 |
|
|
|
dc8c34 |
diff --git a/ldap/servers/slapd/libglobs.c b/ldap/servers/slapd/libglobs.c
|
|
|
dc8c34 |
index cf1f73e..413351d 100644
|
|
|
dc8c34 |
--- a/ldap/servers/slapd/libglobs.c
|
|
|
dc8c34 |
+++ b/ldap/servers/slapd/libglobs.c
|
|
|
dc8c34 |
@@ -1239,8 +1239,8 @@ config_set_disk_threshold( const char *attrname, char *value, char *errorbuf, in
|
|
|
dc8c34 |
threshold = strtoll(value, &endp, 10);
|
|
|
dc8c34 |
|
|
|
dc8c34 |
if ( *endp != '\0' || threshold < 4096 || errno == ERANGE ) {
|
|
|
dc8c34 |
- PR_snprintf ( errorbuf, SLAPI_DSE_RETURNTEXT_SIZE, "%s: \"%s\" is invalid, threshold must be greater than 4096 and less then %lu",
|
|
|
dc8c34 |
- attrname, value, LONG_MAX );
|
|
|
dc8c34 |
+ PR_snprintf ( errorbuf, SLAPI_DSE_RETURNTEXT_SIZE, "%s: \"%s\" is invalid, threshold must be greater than 4096 and less then %lld",
|
|
|
dc8c34 |
+ attrname, value, (long long int)LONG_MAX );
|
|
|
dc8c34 |
retVal = LDAP_OPERATIONS_ERROR;
|
|
|
dc8c34 |
return retVal;
|
|
|
dc8c34 |
}
|
|
|
dc8c34 |
--
|
|
|
dc8c34 |
1.8.1.4
|
|
|
dc8c34 |
|