smbd: Move smb_posix_unlink() to smb1_trans2.c
commitcabef7246977b19398affb0a323e22b0062c8dac
authorVolker Lendecke <vl@samba.org>
Wed, 28 Dec 2022 23:07:21 +0000 (29 00:07 +0100)
committerRalph Boehme <slow@samba.org>
Wed, 4 Jan 2023 08:54:32 +0000 (4 08:54 +0000)
treec04b31c03480a4ed89e1f23f46fe99e358158c9b
parentbcc621a69f90bc556b79eb5b0dd79faddb99a5d3
smbd: Move smb_posix_unlink() to smb1_trans2.c

Most of this is direct cut&paste without reformatting.

Don't pass SMB_POSIX_PATH_UNLINK through smbd_do_setfilepathinfo(),
directly handle it in call_trans2setpathinfo() where we know we have a
path.

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