summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorTim Prouty <tprouty@samba.org>2009-12-14 17:00:43 -0800
committerTim Prouty <tprouty@samba.org>2009-12-15 09:13:24 -0800
commitd732fb43a6ba6932b966ff382954e52a0489efda (patch)
tree98e583857d895c449d2f11abe61b6ede5f4e9b36 /source4
parent7f956869ff7a8e481afb9db0c52a0d74d809867a (diff)
downloadsamba-d732fb43a6ba6932b966ff382954e52a0489efda.tar.gz
samba-d732fb43a6ba6932b966ff382954e52a0489efda.tar.bz2
samba-d732fb43a6ba6932b966ff382954e52a0489efda.zip
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.
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/util_smb.c2
1 files changed, 1 insertions, 1 deletions
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;