mode);
fsp_set_fd(fsp, fd);
- fsp->fsp_name = orig_fsp_name;
if (fd != -1 &&
!is_ntfs_stream_smb_fname(fsp->fsp_name) &&
*/
int ret;
- fsp->fsp_name = smb_fname_rel;
-
ret = SMB_VFS_FSTAT(fsp, &orig_fsp_name->st);
-
- fsp->fsp_name = orig_fsp_name;
-
if (ret != 0) {
goto out;
}
if (S_ISLNK(fsp->fsp_name->st.st_ex_mode)) {
- fsp->fsp_name = smb_fname_rel;
-
ret = SMB_VFS_CLOSE(fsp);
SMB_ASSERT(ret == 0);
fsp_set_fd(fsp, -1);
- fsp->fsp_name = orig_fsp_name;
fd = -1;
errno = ELOOP;
}
/* Explicitly no symlinks. */
goto out;
}
+
+ fsp->fsp_name = orig_fsp_name;
+
/*
* We may have a symlink. Follow in userspace
* to ensure it's under the share definition.
}
out:
-
+ fsp->fsp_name = orig_fsp_name;
TALLOC_FREE(parent_dir_fname);
if (oldwd_fname != NULL) {