From b13789f3e9815c77755eb9ac336b3afba08e8dc4 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Mon, 8 Jun 2009 20:03:43 +0000 Subject: [PATCH] ITS#6162 accept non-decimal loglevels --- servers/slapd/bconfig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/slapd/bconfig.c b/servers/slapd/bconfig.c index a3fd9aa19f..34bab7fd89 100644 --- a/servers/slapd/bconfig.c +++ b/servers/slapd/bconfig.c @@ -2927,7 +2927,7 @@ config_loglevel(ConfigArgs *c) { int level; if ( isdigit((unsigned char)c->argv[i][0]) || c->argv[i][0] == '-' ) { - if( lutil_atoi( &level, c->argv[i] ) != 0 ) { + if( lutil_atoix( &level, c->argv[i], 0 ) != 0 ) { snprintf( c->cr_msg, sizeof( c->cr_msg ), "<%s> unable to parse level", c->argv[0] ); Debug( LDAP_DEBUG_ANY, "%s: %s \"%s\"\n", c->log, c->cr_msg, c->argv[i]); -- 2.39.5