smbd: Move handling smb_set_posix_lock() to smb1_trans2.c
commit765f9bcf6669b20bd98b146b3a5f39ba160ac9ea
authorVolker Lendecke <vl@samba.org>
Thu, 29 Dec 2022 09:59:45 +0000 (29 10:59 +0100)
committerRalph Boehme <slow@samba.org>
Wed, 4 Jan 2023 08:54:32 +0000 (4 08:54 +0000)
tree3817124dba9abfce7c29ef88834655b5224f1771
parent2cef6fcd6d13b68193a04ef64b3d9717a6d1173b
smbd: Move handling smb_set_posix_lock() to smb1_trans2.c

Most of this is direct cut&paste without reformatting.

Don't pass SMB_SET_POSIX_LOCK through smbd_do_setfilepathinfo(),
directly handle it in call_trans2setfileinfo() where we know we have a
fsp.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/smb1_trans2.c
source3/smbd/smb1_trans2.h
source3/smbd/smb2_trans2.c