1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

r7793: allow integers in smb.conf to be specified in octal or hex

This commit is contained in:
Andrew Tridgell 2005-06-21 04:24:49 +00:00 committed by Gerald (Jerry) Carter
parent 1f35642bed
commit ce6257b316

View File

@ -1398,7 +1398,7 @@ static int lp_int(const char *s)
return (-1);
}
return atoi(s);
return strtol(s, NULL, 0);
}
/*******************************************************************
@ -1412,7 +1412,7 @@ static int lp_ulong(const char *s)
return (-1);
}
return strtoul(s, NULL, 10);
return strtoul(s, NULL, 0);
}
/*******************************************************************