Check all open files if either we don't have an fsp or if the fsp is not a full
FSA fsp, ie not one which was created by SMB_VFS_CREATE_FILE() but by
openat_pathref_fsp().
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
allocation_size = SMB_VFS_GET_ALLOC_SIZE(conn, fsp, psbuf);
- if (!fsp) {
+ if (fsp == NULL || !fsp->fsp_flags.is_fsa) {
/* Do we have this path open ? */
files_struct *fsp1;
struct file_id fileid = vfs_file_id_from_sbuf(conn, psbuf);