If doing an SMB_VFS_FSTAT() returning onto the stat struct stored in the fsp,
we must call vfs_stat_fsp() as this preserves the iflags.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15022
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
return true;
}
- result = SMB_VFS_FSTAT(smb_fname->fsp, &smb_fname->st);
- if (result != 0) {
+ status = vfs_stat_fsp(smb_fname->fsp);
+ if (!NT_STATUS_IS_OK(status)) {
TALLOC_FREE(smb_fname);
return true;
}
- sp = &smb_fname->st;
+ sp = &smb_fname->fsp->fsp_name->st;
}
ok = add_filemeta(mds_ctx, reqinfo, fm_array, path, sp);