From: Howard Chu Date: Tue, 12 Jul 2005 14:25:15 +0000 (+0000) Subject: Fix loglevel to accept negative integers X-Git-Tag: OPENLDAP_AC_BP~412 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=675b19dce6373b7134ae6b8a7cae6654fcdade6e;p=openldap Fix loglevel to accept negative integers --- diff --git a/servers/slapd/bconfig.c b/servers/slapd/bconfig.c index 91c8659765..b7e919b72f 100644 --- a/servers/slapd/bconfig.c +++ b/servers/slapd/bconfig.c @@ -1874,7 +1874,7 @@ config_loglevel(ConfigArgs *c) { for( i=1; i < c->argc; i++ ) { int level; - if ( isdigit( c->argv[i][0] ) ) { + if ( isdigit( c->argv[i][0] ) || c->argv[i][0] == '-' ) { level = strtol( c->argv[i], &next, 10 ); if ( next == NULL || next[0] != '\0' ) { sprintf( c->msg, "<%s> unable to parse level", c->argv[0] );