]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: remove NT_STATUS_STOPPED_ON_SYMLINK status code check from synthetic_pathref()
authorRalph Boehme <slow@samba.org>
Tue, 2 Feb 2021 14:56:16 +0000 (15:56 +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/files.c

index 83ccb332bf478e2fd74ffa9a0858b53948ad5b4a..c4ba08c3772b38b60dfcb6656542b2c368a0e337 100644 (file)
@@ -653,9 +653,6 @@ NTSTATUS synthetic_pathref(TALLOC_CTX *mem_ctx,
        }
 
        status = openat_pathref_fsp(dirfsp, smb_fname);
-       if (NT_STATUS_EQUAL(status, NT_STATUS_STOPPED_ON_SYMLINK)) {
-               status = NT_STATUS_OBJECT_NAME_NOT_FOUND;
-       }
        if (!NT_STATUS_IS_OK(status)) {
                DBG_ERR("opening [%s] failed\n",
                        smb_fname_str_dbg(smb_fname));