1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Accept octal values for numbers (such as umask).

This commit is contained in:
Alasdair Kergon 2002-01-09 18:53:07 +00:00
parent 9588155a4e
commit 4bbf2c3418

View File

@ -336,7 +336,7 @@ static struct config_value *_type(struct parser *p)
switch (p->t) {
case TOK_INT:
v->type = CFG_INT;
v->v.i = strtol(p->tb, 0, 10); /* FIXME: check error */
v->v.i = strtol(p->tb, 0, 0); /* FIXME: check error */
match(TOK_INT);
break;