mirror of
https://github.com/samba-team/samba.git
synced 2025-12-19 12:23:49 +03:00
tests: Clean up behind ourselves in test_create_reparse
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
committed by
Jeremy Allison
parent
4536cfb1ec
commit
7dc07710fb
@@ -74,9 +74,11 @@ class ReparsePoints(samba.tests.libsmb.LibsmbTests):
|
||||
|
||||
fd = conn.create(
|
||||
filename,
|
||||
DesiredAccess=sec.SEC_FILE_WRITE_ATTRIBUTE,
|
||||
DesiredAccess=sec.SEC_FILE_WRITE_ATTRIBUTE | sec.SEC_STD_DELETE,
|
||||
CreateDisposition=libsmb.FILE_CREATE)
|
||||
|
||||
conn.delete_on_close(fd, 1)
|
||||
|
||||
with self.assertRaises(NTSTATUSError) as e:
|
||||
conn.fsctl(fd, libsmb.FSCTL_SET_REPARSE_POINT, b'', 0)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user