smbd: Move fcb_or_dos_open() out of open_file_ntcreate()
authorVolker Lendecke <vl@samba.org>
Fri, 5 Jul 2019 07:52:43 +0000 (09:52 +0200)
committerRalph Boehme <slow@samba.org>
Mon, 8 Jul 2019 16:22:37 +0000 (16:22 +0000)
commit32766db210426d92948a7d81d923f9d669ff3ed6
tree2234328fdb36c1855c8c79ba40b6c63ab8edcda9
parentb16f7113ebfe324b847f136912d24a25b983aae5
smbd: Move fcb_or_dos_open() out of open_file_ntcreate()

This is SMB1-only and pre-ntcreate with only 3 callers that look at
NTCREATEX_OPTIONS_PRIVATE_DENY_[DOS|FCB]. It is a bit less efficient
if it kicks in (we have to recreate the fsp), but SMB1 is less and
less popular, and this particular share mode combination from the
open&x family of calls might not be worth optimizing for.

This adds smb1_utils.[ch] as a kitchen sink for functions that can go
away once we drop SMB1.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/smbd/open.c
source3/smbd/reply.c
source3/smbd/smb1_utils.c [new file with mode: 0644]
source3/smbd/smb1_utils.h [new file with mode: 0644]
source3/smbd/trans2.c
source3/wscript_build