From: Howard Chu Date: Mon, 8 Jun 2009 20:03:43 +0000 (+0000) Subject: ITS#6162 accept non-decimal loglevels X-Git-Tag: ACLCHECK_0~506 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b13789f3e9815c77755eb9ac336b3afba08e8dc4;p=openldap ITS#6162 accept non-decimal loglevels --- 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]);