From 5ee6f67c156f42b3a4f4461ad662d405b068ea75 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 21 May 2015 12:35:43 +0200 Subject: [PATCH] s3: lib: util: Ensure we read a hex number as %x, not %u. Based on a patch from Zoe O'Connell BUG: https://bugzilla.samba.org/show_bug.cgi?id=11068 Signed-off-by: Jeremy Allison Reviewed-by: Jim McDonough Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Thu May 21 15:34:59 CEST 2015 on sn-devel-104 (cherry picked from commit e9f08528af0a5420d6a5fa3799b75c6058b6775f) --- source3/lib/util_sd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/lib/util_sd.c b/source3/lib/util_sd.c index 8100539..ee5dc6c 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); -- 2.1.4