From 675b19dce6373b7134ae6b8a7cae6654fcdade6e Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Tue, 12 Jul 2005 14:25:15 +0000 Subject: [PATCH] Fix loglevel to accept negative integers --- 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 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] ); -- 2.39.5