From: Ralph Boehme Date: Tue, 2 Feb 2021 15:00:32 +0000 (+0100) Subject: smbd: remove NT_STATUS_STOPPED_ON_SYMLINK status code check from copy_file() X-Git-Tag: tevent-0.11.0~1809 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5898f5769e0b126cca33ba0002f1e4c3eb80d21a;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 11174bc0e48..45a2a298f65 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -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)) {