From 6c2dad2aaef5eab75f3fe14219e9eca6724d6c99 Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Tue, 2 Feb 2021 15:57:26 +0100 Subject: [PATCH] smbd: remove NT_STATUS_STOPPED_ON_SYMLINK status code check from reply_search() Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- source3/smbd/reply.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index c9820df2bb5..c59b67d58c6 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -1834,9 +1834,6 @@ void reply_search(struct smb_request *req) } nt_status = openat_pathref_fsp(conn->cwd_fsp, smb_dname); - if (NT_STATUS_EQUAL(nt_status, NT_STATUS_STOPPED_ON_SYMLINK)) { - nt_status = NT_STATUS_OBJECT_NAME_NOT_FOUND; - } if (!NT_STATUS_IS_OK(nt_status)) { reply_nterror(req, nt_status); goto out; -- 2.47.3