]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4/torture: give smb2_generic_create_share() caller some flexibility
authorRalph Boehme <slow@samba.org>
Sun, 27 Feb 2022 17:48:49 +0000 (18:48 +0100)
committerRalph Boehme <slow@samba.org>
Tue, 5 Nov 2024 14:39:31 +0000 (14:39 +0000)
This way callers can either create or open a directory.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source4/torture/smb2/util.c

index 233f589c73f6f28f862bcfc490a44ae1e0138a50..e695ac3a6439b5de1d8ef4f266bf84205a767066 100644 (file)
@@ -904,7 +904,6 @@ void smb2_generic_create_share(struct smb2_create *io, struct smb2_lease *ls,
        if (dir) {
                io->in.create_options = NTCREATEX_OPTIONS_DIRECTORY;
                io->in.file_attributes = FILE_ATTRIBUTE_DIRECTORY;
-               io->in.create_disposition = NTCREATEX_DISP_CREATE;
        }
 
        if (ls) {