]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: use orig_fsp_name as variable name in non_widelink_open()
authorRalph Boehme <slow@samba.org>
Mon, 19 Oct 2020 08:16:06 +0000 (10:16 +0200)
committerRalph Boehme <slow@samba.org>
Wed, 16 Dec 2020 09:08:30 +0000 (09:08 +0000)
No change in behaviour.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/open.c

index 04e7d5d94b74f5d10b9cf6830092db87c152ed8b..b77f29272fb54e6a7ecb94816e7b9e138164c6bc 100644 (file)
@@ -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;
                }