]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: remove NT_STATUS_STOPPED_ON_SYMLINK status code check from copy_file()
authorRalph Boehme <slow@samba.org>
Tue, 2 Feb 2021 14:58:57 +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 0bef10948631c87211b9a1586e745e0a13a44534..11174bc0e4836e2f5fa4de2fe4c4c16fa217047c 100644 (file)
@@ -8510,9 +8510,6 @@ NTSTATUS copy_file(TALLOC_CTX *ctx,
        }
 
        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)) {
                goto out;
        }