mirror of
https://github.com/samba-team/samba.git
synced 2025-01-08 21:18:16 +03:00
selftest: aces: fix mutable default args in assemble_ace
Signed-off-by: Rob van der Linde <rob@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
This commit is contained in:
parent
1093f4b6b1
commit
87c8e578de
@ -171,12 +171,15 @@ def assemble(*tokens):
|
||||
return program
|
||||
|
||||
|
||||
def assemble_ace(tokens=[],
|
||||
def assemble_ace(tokens=None,
|
||||
type=security.SEC_ACE_TYPE_ACCESS_ALLOWED_CALLBACK,
|
||||
trustee=None,
|
||||
flags=None,
|
||||
object=None,
|
||||
access_mask=None):
|
||||
if tokens is None:
|
||||
tokens = []
|
||||
|
||||
type_strings = {
|
||||
'XA': security.SEC_ACE_TYPE_ACCESS_ALLOWED_CALLBACK,
|
||||
'XD': security.SEC_ACE_TYPE_ACCESS_DENIED_CALLBACK,
|
||||
|
Loading…
Reference in New Issue
Block a user