1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

adouble: ensure stat info is marked invalid on new path

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Ralph Boehme 2019-07-07 13:50:49 +02:00 committed by Jeremy Allison
parent a2a30e63d5
commit f820647fa1

View File

@ -1827,6 +1827,8 @@ int adouble_path(TALLOC_CTX *ctx,
/* And we're replacing base_name. */
TALLOC_FREE(smb_fname->base_name);
SET_STAT_INVALID(smb_fname->st);
if (!parent_dirname(smb_fname, smb_fname_in->base_name,
&parent, &base)) {
TALLOC_FREE(smb_fname);