Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Thu May 21 06:43:04 UTC 2020 on sn-devel-184
-static int non_widelink_open(struct connection_struct *conn,
- files_struct *fsp,
+static int non_widelink_open(files_struct *fsp,
struct smb_filename *smb_fname,
int flags,
mode_t mode,
struct smb_filename *smb_fname,
int flags,
mode_t mode,
}
/* And do it all again.. */
}
/* And do it all again.. */
- fd = non_widelink_open(conn,
- fsp,
+ fd = non_widelink_open(fsp,
Non-widelink open.
****************************************************************************/
Non-widelink open.
****************************************************************************/
-static int non_widelink_open(struct connection_struct *conn,
- files_struct *fsp,
+static int non_widelink_open(files_struct *fsp,
struct smb_filename *smb_fname,
int flags,
mode_t mode,
unsigned int link_depth)
{
struct smb_filename *smb_fname,
int flags,
mode_t mode,
unsigned int link_depth)
{
+ struct connection_struct *conn = fsp->conn;
NTSTATUS status;
int fd = -1;
struct smb_filename *smb_fname_rel = NULL;
NTSTATUS status;
int fd = -1;
struct smb_filename *smb_fname_rel = NULL;
* Only follow symlinks within a share
* definition.
*/
* Only follow symlinks within a share
* definition.
*/
- fsp->fh->fd = non_widelink_open(conn,
- fsp,
- smb_fname,
- flags,
- mode,
- 0);
+ fsp->fh->fd = non_widelink_open(fsp,
+ smb_fname,
+ flags,
+ mode,
+ 0);
if (fsp->fh->fd == -1) {
saved_errno = errno;
}
if (fsp->fh->fd == -1) {
saved_errno = errno;
}