From ade0af788162d96cdc2e79aae8c79fca7a170315 Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Mon, 19 Oct 2020 10:16:06 +0200 Subject: [PATCH] smbd: use orig_fsp_name as variable name in non_widelink_open() No change in behaviour. Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- source3/smbd/open.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source3/smbd/open.c b/source3/smbd/open.c index 04e7d5d94b7..b77f29272fb 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -651,7 +651,7 @@ static int non_widelink_open(const struct files_struct *dirfsp, struct connection_struct *conn = fsp->conn; NTSTATUS status; int fd = -1; - struct smb_filename *tmp_fsp_name = fsp->fsp_name; + struct smb_filename *orig_fsp_name = fsp->fsp_name; struct smb_filename *smb_fname_rel = NULL; int saved_errno = 0; struct smb_filename *oldwd_fname = NULL; @@ -720,7 +720,7 @@ static int non_widelink_open(const struct files_struct *dirfsp, mode); fsp_set_fd(fsp, fd); - fsp->fsp_name = tmp_fsp_name; + fsp->fsp_name = orig_fsp_name; if (fd != -1 && !is_ntfs_stream_smb_fname(fsp->fsp_name) && @@ -740,9 +740,9 @@ static int non_widelink_open(const struct files_struct *dirfsp, fsp->fsp_name = smb_fname_rel; - ret = SMB_VFS_FSTAT(fsp, &tmp_fsp_name->st); + ret = SMB_VFS_FSTAT(fsp, &orig_fsp_name->st); - fsp->fsp_name = tmp_fsp_name; + fsp->fsp_name = orig_fsp_name; if (ret != 0) { goto out; @@ -755,7 +755,7 @@ static int non_widelink_open(const struct files_struct *dirfsp, SMB_ASSERT(ret == 0); fsp_set_fd(fsp, -1); - fsp->fsp_name = tmp_fsp_name; + fsp->fsp_name = orig_fsp_name; fd = -1; errno = ELOOP; } -- 2.47.3