]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: remove NT_STATUS_STOPPED_ON_SYMLINK status code check from parent_pathref()
authorRalph Boehme <slow@samba.org>
Tue, 2 Feb 2021 14:56:26 +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 c4ba08c3772b38b60dfcb6656542b2c368a0e337..3254d728ad60b20350ed7078f5268ee305bd6c59 100644 (file)
@@ -705,9 +705,6 @@ NTSTATUS parent_pathref(TALLOC_CTX *mem_ctx,
        }
 
        status = openat_pathref_fsp(dirfsp, parent);
-       if (NT_STATUS_EQUAL(status, NT_STATUS_STOPPED_ON_SYMLINK)) {
-               status = NT_STATUS_OBJECT_NAME_NOT_FOUND;
-       }
        if (!NT_STATUS_IS_OK(status)) {
                TALLOC_FREE(parent);
                return status;