This ensures smb_fname_base knows if it's a file or directory.
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
smb_fname_base = synthetic_smb_fname(talloc_tos(),
smb_fname->base_name,
NULL,
- NULL,
+ &smb_fname->st,
smb_fname->twrp,
smb_fname->flags);
if (smb_fname_base == NULL) {
goto fail;
}
+ SET_STAT_INVALID(smb_fname_base->st);
+
/*
* We may be creating the basefile as part of creating the
* stream, so it's legal if the basefile doesn't exist at this