]> git.ipfire.org Git - thirdparty/samba.git/commit
s3: smbd: Tweak the logic of smb2_file_rename_information().
authorJeremy Allison <jra@samba.org>
Fri, 29 Jul 2022 21:38:17 +0000 (14:38 -0700)
committerJeremy Allison <jra@samba.org>
Tue, 2 Aug 2022 19:49:32 +0000 (19:49 +0000)
commitc673ca15c56feef41501643244ebfe15a48c8d2c
tree1020d207db2ca30a1c3a51e897a9d9b589dff594
parentb9006f33b4fbe97ef09ae4e6c4d25eadf9b2b46d
s3: smbd: Tweak the logic of smb2_file_rename_information().

There's no point in calling filename_convert() and then
just ignoring the returned smb_fname if it's a raw stream name.
Only call filename_convert() if we know it isn't a raw stream
name.

Ignore stream/non-stream mismatches in src and dst in
smb2_file_rename_information, let rename_internals_fsp()
take care of that as the error returns inside rename_internals_fsp()
are tested by raw.streams.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
source3/smbd/smb2_trans2.c