s3: smbd: Add "enum file_close_type close_type" parameter to close_cnum().
authorJeremy Allison <jra@samba.org>
Wed, 17 Aug 2022 18:35:29 +0000 (11:35 -0700)
committerJule Anger <janger@samba.org>
Tue, 23 Aug 2022 07:46:18 +0000 (07:46 +0000)
commit5fc9bf0f63cca19a25b26d64175746431e45a47f
tree7d525a51aadf21bb36fd1c16599f2939e19804b9
parentc47b7479e74944d20a82bc109dcf35aeb099eed0
s3: smbd: Add "enum file_close_type close_type" parameter to close_cnum().

Not yet used, but needed so we can differentiate between
SHUTDOWN_CLOSE and ERROR_CLOSE in smbXsrv_tcon_disconnect()
if we fail to chdir. In that case we want to close the fd,
but not run any delete-on-close actions.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15128

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Noel Power <npower@samba.org>
(cherry picked from commit 9203d17106c0e55a30813ff1ed76869c7581a343)
source3/smbd/proto.h
source3/smbd/smb2_service.c
source3/smbd/smbXsrv_tcon.c