mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-31 20:19:34 -05:00
Fix loglevel to accept negative integers
This commit is contained in:
parent
08ec8ad068
commit
675b19dce6
1 changed files with 1 additions and 1 deletions
|
|
@ -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] );
|
||||
|
|
|
|||
Loading…
Reference in a new issue