]> git.sur5r.net Git - openldap/commitdiff
ITS#4077. I wonder if we should have an ARG_OCTAL flag to preserve the
authorHoward Chu <hyc@openldap.org>
Tue, 11 Oct 2005 18:57:34 +0000 (18:57 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 11 Oct 2005 18:57:34 +0000 (18:57 +0000)
representation ... ?

servers/slapd/config.c

index 8d44c6c60e6295bffae06f8d941bd248f79b9104..8d5544183def6690f1005d663978c4607d4d98b2 100644 (file)
@@ -191,7 +191,7 @@ int config_check_vals(ConfigTable *Conf, ConfigArgs *c, int check_only ) {
                int j;
                iarg = 0; larg = 0; barg = 0;
                switch(arg_type & ARGS_NUMERIC) {
-                       case ARG_INT:           iarg = atoi(c->argv[1]);                break;
+                       case ARG_INT:           iarg = strtol(c->argv[1], NULL, 0); break;
                        case ARG_LONG:          larg = strtol(c->argv[1], NULL, 0);     break;
                        case ARG_BER_LEN_T:     barg = (ber_len_t)atol(c->argv[1]);     break;
                        case ARG_ON_OFF: