From d732fb43a6ba6932b966ff382954e52a0489efda Mon Sep 17 00:00:00 2001 From: Tim Prouty Date: Mon, 14 Dec 2009 17:00:43 -0800 Subject: s4 torture: Add SHARE_DELETE to create_directory_handle Tests explicitly checking share modes should open the dir/file with the share mode they want to test. --- source4/torture/util_smb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4') diff --git a/source4/torture/util_smb.c b/source4/torture/util_smb.c index 180f8f03c4..b35a1cb207 100644 --- a/source4/torture/util_smb.c +++ b/source4/torture/util_smb.c @@ -67,7 +67,7 @@ NTSTATUS create_directory_handle(struct smbcli_tree *tree, const char *dname, in io.ntcreatex.in.access_mask = SEC_RIGHTS_FILE_ALL; io.ntcreatex.in.create_options = NTCREATEX_OPTIONS_DIRECTORY; io.ntcreatex.in.file_attr = FILE_ATTRIBUTE_NORMAL; - io.ntcreatex.in.share_access = NTCREATEX_SHARE_ACCESS_READ | NTCREATEX_SHARE_ACCESS_WRITE; + io.ntcreatex.in.share_access = NTCREATEX_SHARE_ACCESS_READ | NTCREATEX_SHARE_ACCESS_WRITE | NTCREATEX_SHARE_ACCESS_DELETE; io.ntcreatex.in.alloc_size = 0; io.ntcreatex.in.open_disposition = NTCREATEX_DISP_OPEN_IF; io.ntcreatex.in.impersonation = NTCREATEX_IMPERSONATION_ANONYMOUS; -- cgit