smbd: remove NT_STATUS_STOPPED_ON_SYMLINK status code check from get_file_handle_for_...
authorRalph Boehme <slow@samba.org>
Tue, 2 Feb 2021 14:54:43 +0000 (15:54 +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/dosmode.c

index ccfeaca124dd71197816f94d6815b98530c4a32d..ea225a9b1ef6b8a8f4e754ad12bb7b5930a62553 100644 (file)
@@ -1378,9 +1378,6 @@ static NTSTATUS get_file_handle_for_metadata(connection_struct *conn,
        }
 
        status = openat_pathref_fsp(conn->cwd_fsp, smb_fname_cp);
-       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(smb_fname_cp);
                return status;