]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: remove NT_STATUS_STOPPED_ON_SYMLINK status code check from reply_search()
authorRalph Boehme <slow@samba.org>
Tue, 2 Feb 2021 14:57:26 +0000 (15:57 +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 c9820df2bb5417f9b6ea61ed2a55cf845e509ea8..c59b67d58c6b7337270acffac60f045f251e61af 100644 (file)
@@ -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;