util_sd: Also accept hex input for ALLOW/DENIED
authorChristof Schmitt <cs@samba.org>
Mon, 8 Feb 2016 20:56:23 +0000 (13:56 -0700)
committerJeremy Allison <jra@samba.org>
Fri, 19 Feb 2016 23:46:29 +0000 (00:46 +0100)
commit4b56ce3abdb459bffc182a55e2bc82eaf135635f
tree32fbb6bb184a4b798866bc754278f1478f55bf22
parentda74d0c317be9ce67eb5d00d232167d466f68a1e
util_sd: Also accept hex input for ALLOW/DENIED

Implement this by explicitly checking for decimal or hexadecimal input.
This avoids using sscanf with %i and a signed integer type, and it also
matches the code paths for flags and mask that also have an explicit
check.

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/lib/util_sd.c