summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2015-05-21 12:35:43 +0200
committerJeremy Allison <jra@samba.org>2015-05-21 15:34:59 +0200
commite9f08528af0a5420d6a5fa3799b75c6058b6775f (patch)
tree58fd94766e4aa6de6357cccdb944f75d63f7412f /source3/lib
parent435ddd8223eaa6fafb62cead0399bdd042d998e8 (diff)
downloadsamba-e9f08528af0a5420d6a5fa3799b75c6058b6775f.tar.gz
s3: lib: util: Ensure we read a hex number as %x, not %u.
Based on a patch from Zoe O'Connell <zoe@metail.com> BUG: https://bugzilla.samba.org/show_bug.cgi?id=11068 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Jim McDonough <jmcd@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Thu May 21 15:34:59 CEST 2015 on sn-devel-104
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/util_sd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/util_sd.c b/source3/lib/util_sd.c
index bfd5dbb979a..8065a0fbd1a 100644
--- a/source3/lib/util_sd.c
+++ b/source3/lib/util_sd.c
@@ -501,7 +501,7 @@ bool parse_ace(struct cli_state *cli, struct security_ace *ace,
}
if (strncmp(tok, "0x", 2) == 0) {
- if (sscanf(tok, "%u", &amask) != 1) {
+ if (sscanf(tok, "%x", &amask) != 1) {
printf("ACE '%s': bad hex number at '%s'\n",
orig_str, tok);
SAFE_FREE(str);