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)
committerNoel Power <npower@samba.org>
Thu, 18 Aug 2022 13:07:34 +0000 (13:07 +0000)
commit9203d17106c0e55a30813ff1ed76869c7581a343
treea6425ef995ff95b8d1f4f420778d7808c2b0a8e9
parente4371a4c3b891ae4e88bd91cda8eb84eb7304e04
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>
source3/smbd/proto.h
source3/smbd/smb2_service.c
source3/smbd/smbXsrv_tcon.c