Skip to content

Commit

Permalink
Fix usage
Browse files Browse the repository at this point in the history
  • Loading branch information
anodos325 committed Sep 30, 2024
1 parent 4b59a6d commit 0b0b408
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/api2/test_smb_null_empty_dacl.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,11 @@ def test_empty_dacl_set(unprivileged_user_fixture, share):
) as c:
fh = c.create_file('test_null_dacl', 'w')
current_sd = c.get_sd(fh, security.SECINFO_OWNER | security.SECINFO_GROUP)
current_sd.dacl = []
current_sd.dacl = security.acl()
c.set_sd(fh, current_sd, security.SECINFO_OWNER | security.SECINFO_GROUP | security.SECINFO_DACL)

new_sd = c.get_sd(fh, security.SECINFO_OWNER | security.SECINFO_GROUP)
assert new_sd.dacl == []
assert new_sd.dacl.num_aces == 0

theacl = call('filesystem.getacl', os.path.join(share['share']['path'], 'test_null_dacl'))
assert len(theacl['acl']) == 1
Expand Down

0 comments on commit 0b0b408

Please sign in to comment.