s3: smbd: Plumb close_type parameter through close_file_in_loop(), file_close_conn()
authorJeremy Allison <jra@samba.org>
Wed, 17 Aug 2022 18:43:47 +0000 (11:43 -0700)
committerNoel Power <npower@samba.org>
Thu, 18 Aug 2022 14:10:18 +0000 (14:10 +0000)
commitcf5f7b1489930f6d64c3e3512f116ccf286d4605
treec45752403dc8f1fba168daad074f32cc0103c9dd
parent7005a6354df5522d9f665fb30052c458dfc93124
s3: smbd: Plumb close_type parameter through close_file_in_loop(), file_close_conn()

Allows close_file_in_loop() to differentiate between SHUTDOWN_CLOSE
(previously it only used this close type) and ERROR_CLOSE - called
on error from smbXsrv_tcon_disconnect() in the error path. 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>
Reivewed-by: Noel Power <npower@samba.org>
Autobuild-User(master): Noel Power <npower@samba.org>
Autobuild-Date(master): Thu Aug 18 14:10:18 UTC 2022 on sn-devel-184
source3/smbd/files.c