The wrong number of semicolons is usually one less than count (which
counts sections separated by semicolons), except when count is zero.
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
if (count != 6) {
/* we hit the '\0' or ')' before all of ';;;;;)' */
*msg = talloc_asprintf(mem_ctx,
- "malformed ACE with only %zu ';'", count);
+ "malformed ACE with only %zu ';'",
+ MIN(count - 1, count));
return false;
}
+++ /dev/null
-samba.tests.samba_tool.domain_auth_policy.samba.tests.samba_tool.domain_auth_policy.AuthPolicyCmdTestCase.test_create__invalid_sddl_normal_ace