From 9cc64156c48837944a41e8e9eb2f3283a3859072 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 21 Jun 2005 04:24:49 +0000 Subject: r7793: allow integers in smb.conf to be specified in octal or hex (This used to be commit ce6257b316bc66a3fc554487099976a853d25ddd) --- source4/param/loadparm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/param') diff --git a/source4/param/loadparm.c b/source4/param/loadparm.c index 49bb52230e..d59d4efadf 100644 --- a/source4/param/loadparm.c +++ b/source4/param/loadparm.c @@ -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); } /******************************************************************* -- cgit