smbd: Move smb_set_file_unix_hlink() to smb1_trans2.c
commit2cef6fcd6d13b68193a04ef64b3d9717a6d1173b
authorVolker Lendecke <vl@samba.org>
Thu, 29 Dec 2022 09:47:12 +0000 (29 10:47 +0100)
committerRalph Boehme <slow@samba.org>
Wed, 4 Jan 2023 08:54:32 +0000 (4 08:54 +0000)
tree391ad303b64fee91d3b5772bc29ccfb2e01525b9
parent5273c1da12a2e8e1f34abdbe13051c6de7945900
smbd: Move smb_set_file_unix_hlink() to smb1_trans2.c

Most of this is direct cut&paste without reformatting.

Don't pass SMB_SET_FILE_UNIX_HLINK 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