smbd: remove NT_STATUS_STOPPED_ON_SYMLINK status code check from call_trans2findfirst()
authorRalph Boehme <slow@samba.org>
Tue, 2 Feb 2021 15:01:19 +0000 (16:01 +0100)
committerKarolin Seeger <kseeger@samba.org>
Thu, 10 Jun 2021 09:31:12 +0000 (09:31 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14730

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Fri Feb  5 07:26:44 UTC 2021 on sn-devel-184

(cherry picked from commit 1b3d70e9ae95892a70bd0f46ae5bf733c1bc9548)

source3/smbd/trans2.c

index 7196b0fcc7234838a9f02f7d913c5e1ed0c11b56..fac45df586e0120238163930dbbb068a9420129e 100644 (file)
@@ -2963,9 +2963,6 @@ total_data=%u (should be %u)\n", (unsigned int)total_data, (unsigned int)IVAL(pd
        }
 
        ntstatus = openat_pathref_fsp(conn->cwd_fsp, smb_dname);
-       if (NT_STATUS_EQUAL(ntstatus, NT_STATUS_STOPPED_ON_SYMLINK)) {
-               ntstatus = NT_STATUS_OBJECT_NAME_NOT_FOUND;
-       }
        if (!NT_STATUS_IS_OK(ntstatus)) {
                reply_nterror(req, ntstatus);
                goto out;