]> git.sur5r.net Git - openldap/commitdiff
ITS#6162 accept non-decimal loglevels
authorHoward Chu <hyc@openldap.org>
Mon, 8 Jun 2009 20:03:43 +0000 (20:03 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 8 Jun 2009 20:03:43 +0000 (20:03 +0000)
servers/slapd/bconfig.c

index a3fd9aa19fb3446a8bab935684091073f5e6951a..34bab7fd89fa82511d07bdd63874bfd63435885d 100644 (file)
@@ -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]);