A subsequent commit will add a consumer of the fd to non_widelink_open() (by
calling SMB_VFS_FSTAT()), so we need to set the fd already here. And it makes
more sense anyway. :)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
flags,
mode);
+ fsp_set_fd(fsp, fd);
fsp->fsp_name = tmp_fsp_name;
if (fd == -1) {
return status;
}
- fsp_set_fd(fsp, fd);
-
DBG_DEBUG("name %s, flags = 0%o mode = 0%o, fd = %d\n",
smb_fname_str_dbg(smb_fname), flags, (int)mode, fd);