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)
committerJule Anger <janger@samba.org>
Tue, 23 Aug 2022 07:45:16 +0000 (07:45 +0000)
commitce464a83c76ce612171f3df4933058695210915e
treeca55ef8e4e22b17a5bc2af6d67e88d40d712ae5f
parenta5cf33d4041d44f1f8a80563b81f3bc6893bc7ce
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

(cherry picked from commit cf5f7b1489930f6d64c3e3512f116ccf286d4605)
source3/smbd/files.c