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:
parent
1f35642bed
commit
ce6257b316
@ -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);
|
||||
}
|
||||
|
||||
/*******************************************************************
|
||||
|
Loading…
Reference in New Issue
Block a user