From: Ralph Boehme Date: Tue, 2 Feb 2021 14:58:57 +0000 (+0100) Subject: smbd: remove NT_STATUS_STOPPED_ON_SYMLINK status code check from copy_file() X-Git-Tag: tevent-0.11.0~1810 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=544767f72df366baf50be6d841e36dbcbe9f4065;p=thirdparty%2Fsamba.git smbd: remove NT_STATUS_STOPPED_ON_SYMLINK status code check from copy_file() Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index 0bef1094863..11174bc0e48 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -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; }