This is already set to -1 by fd_handle_create().
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
bool truncating = (flags & O_TRUNC);
bool open_fd = false;
- fsp->fh->fd = -1;
errno = EPERM;
/* Check permissions */
smb_fname->base_name);
}
} else {
- fsp->fh->fd = -1; /* What we used to call a stat open. */
if (!file_existed) {
/* File must exist for a stat open. */
return NT_STATUS_OBJECT_NAME_NOT_FOUND;