]> git.samba.org - samba.git/commit
smbd: call rename_open_files() a bit earlier in rename_internals_fsp()
authorRalph Boehme <slow@samba.org>
Fri, 30 Oct 2020 14:38:22 +0000 (15:38 +0100)
committerRalph Boehme <slow@samba.org>
Wed, 16 Dec 2020 09:08:32 +0000 (09:08 +0000)
commit8dbac0d5c7ae3ec3905e0a14069d1c541a230f8e
tree09675aba3026bc5f748023a7f00dd50c4fc33ad1
parent988a838a352fe7a47e3b754020ee6887d3ad27be
smbd: call rename_open_files() a bit earlier in rename_internals_fsp()

This prepares for using handle based SMB_VFS_FSTAT() and fdos_mode() a few lines
below. As some VFS modules will use the fsp->fsp_name we have to make sure to
rename it first.

Fwiw, notify_rename() is moved as well as it needs to original name in
fsp->fsp_name.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/reply.c