]> git.sur5r.net Git - openldap/commitdiff
Fix loglevel to accept negative integers
authorHoward Chu <hyc@openldap.org>
Tue, 12 Jul 2005 14:25:15 +0000 (14:25 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 12 Jul 2005 14:25:15 +0000 (14:25 +0000)
servers/slapd/bconfig.c

index 91c865976520a23a4c89d48d80cd40ba0fe6752f..b7e919b72f53fe46850764badf4e390deef7e902 100644 (file)
@@ -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] );