]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: remove NT_STATUS_STOPPED_ON_SYMLINK status code check from rename_internals()
authorRalph Boehme <slow@samba.org>
Tue, 2 Feb 2021 14:58:42 +0000 (15:58 +0100)
committerRalph Boehme <slow@samba.org>
Fri, 5 Feb 2021 06:22:35 +0000 (06:22 +0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/reply.c

index a1365d1b2853904d7222398672870677e5a920c6..0bef10948631c87211b9a1586e745e0a13a44534 100644 (file)
@@ -8201,9 +8201,6 @@ NTSTATUS rename_internals(TALLOC_CTX *ctx,
                vfs_stat(conn, smb_fname_src);
 
                status = openat_pathref_fsp(conn->cwd_fsp, smb_fname_src);
-               if (NT_STATUS_EQUAL(status, NT_STATUS_STOPPED_ON_SYMLINK)) {
-                       status = NT_STATUS_OBJECT_NAME_NOT_FOUND;
-               }
                if (!NT_STATUS_IS_OK(status)) {
                        DBG_INFO("openat_pathref_fsp [%s] failed: %s\n",
                                 smb_fname_str_dbg(smb_fname_src),