1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

s3: smbd: SMB1 reply_copy(). Posix pathnames should never call into mangle_is_mangled().

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
Jeremy Allison 2021-11-09 14:23:22 -08:00 committed by Ralph Boehme
parent d0d8f32d8f
commit e3c40250fb

View File

@ -8941,6 +8941,7 @@ void reply_copy(struct smb_request *req)
* Tine Smukavec <valentin.smukavec@hermes.si>.
*/
if (!VALID_STAT(smb_fname_src->st) &&
!posix_pathnames &&
mangle_is_mangled(fname_src_mask, conn->params)) {
char *new_mask = NULL;
mangle_lookup_name_from_8_3(ctx, fname_src_mask,