smbd: remove NT_STATUS_STOPPED_ON_SYMLINK status code check from copy_file()
authorRalph Boehme <slow@samba.org>
Tue, 2 Feb 2021 15:00:32 +0000 (16:00 +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 11174bc0e4836e2f5fa4de2fe4c4c16fa217047c..45a2a298f65c9f064d224ca68a5b85392f87c62d 100644 (file)
@@ -8559,10 +8559,6 @@ NTSTATUS copy_file(TALLOC_CTX *ctx,
        }
 
        status = openat_pathref_fsp(conn->cwd_fsp, smb_fname_dst);
-       if (NT_STATUS_EQUAL(status, NT_STATUS_STOPPED_ON_SYMLINK)) {
-               status = NT_STATUS_OBJECT_NAME_NOT_FOUND;
-               goto out;
-       }
        if (!NT_STATUS_IS_OK(status) &&
            !NT_STATUS_EQUAL(status, NT_STATUS_OBJECT_NAME_NOT_FOUND))
        {