If you follow "existing_dos_attributes" through the routine, this can
only ever be !=0 if SMB_VFS_GET_DOS_ATTRIBUTES() was successful. This
can only have been successful if the file existed.
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
/* POSIX opens are sparse by default. */
fsp->is_sparse = true;
} else {
- fsp->is_sparse = (file_existed &&
- (existing_dos_attributes & FILE_ATTRIBUTE_SPARSE));
+ fsp->is_sparse =
+ (existing_dos_attributes & FILE_ATTRIBUTE_SPARSE);
}
/*