We stat the basefile so we leave valid stat info from the base file
behind, even though the xattr for the stream was not there.
Bug: https://bugzilla.samba.org/show_bug.cgi?id=12791
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Richard Sharpe <realrichardsharpe@gmail.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
smb_fname_base, io->xattr_name);
if (sbuf->st_ex_size == -1) {
TALLOC_FREE(smb_fname_base);
+ SET_STAT_INVALID(*sbuf);
return -1;
}
smb_fname,
xattr_name);
if (smb_fname->st.st_ex_size == -1) {
+ SET_STAT_INVALID(smb_fname->st);
errno = ENOENT;
result = -1;
goto fail;
smb_fname,
xattr_name);
if (smb_fname->st.st_ex_size == -1) {
+ SET_STAT_INVALID(smb_fname->st);
errno = ENOENT;
result = -1;
goto fail;