When setting an ACL that includes a DENY ACE for S-1-1-0, in merge_aces() we don't correctly apply that to all ALLOW ACEs when merging. There are two problems: - we don't check for S-1-1-0 at all and - we stop the loop after the first match