From: Ralph Boehme Date: Sun, 27 Feb 2022 17:48:49 +0000 (+0100) Subject: s4/torture: give smb2_generic_create_share() caller some flexibility X-Git-Tag: tdb-1.4.13~682 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f10bbff92809bd941a6b47b09453c195d5ba8f6f;p=thirdparty%2Fsamba.git s4/torture: give smb2_generic_create_share() caller some flexibility This way callers can either create or open a directory. Signed-off-by: Ralph Boehme Reviewed-by: Stefan Metzmacher --- diff --git a/source4/torture/smb2/util.c b/source4/torture/smb2/util.c index 233f589c73f..e695ac3a643 100644 --- a/source4/torture/smb2/util.c +++ b/source4/torture/smb2/util.c @@ -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) {