--- source3/utils/smbcacls.c.orig 2015-01-23 10:54:55.982440625 +0000 +++ source3/utils/smbcacls.c 2015-01-23 10:55:26.054440277 +0000 @@ -571,7 +571,7 @@ } 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);