mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
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 <slow@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
parent
21d0a2a9ff
commit
f10bbff928
@ -904,7 +904,6 @@ void smb2_generic_create_share(struct smb2_create *io, struct smb2_lease *ls,
|
|||||||
if (dir) {
|
if (dir) {
|
||||||
io->in.create_options = NTCREATEX_OPTIONS_DIRECTORY;
|
io->in.create_options = NTCREATEX_OPTIONS_DIRECTORY;
|
||||||
io->in.file_attributes = FILE_ATTRIBUTE_DIRECTORY;
|
io->in.file_attributes = FILE_ATTRIBUTE_DIRECTORY;
|
||||||
io->in.create_disposition = NTCREATEX_DISP_CREATE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ls) {
|
if (ls) {
|
||||||
|
Loading…
Reference in New Issue
Block a user