]> git.ipfire.org Git - thirdparty/samba.git/commit
s3:smbd: allow close_file() with a non-fsa fsp for {SHUTDOWN,ERROR}_CLOSE
authorStefan Metzmacher <metze@samba.org>
Wed, 23 Dec 2020 11:10:37 +0000 (12:10 +0100)
committerStefan Metzmacher <metze@samba.org>
Thu, 14 Jan 2021 11:30:38 +0000 (11:30 +0000)
commit9c277b27dec568677c0b407497da6eb95ae7cb8d
tree2f2ff19f26d842e51cd383dba2c1876b96dfa4ba
parent20187c6f54c85131bcdc7979a649d1a575d3a8e0
s3:smbd: allow close_file() with a non-fsa fsp for {SHUTDOWN,ERROR}_CLOSE

Such an fsp was typically created via create_internal_fsp() and
opened via fd_openat() without going through SMB_VFS_CREATE_FILE(),
so they should be closed via fd_close().

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/close.c