From: Ralph Boehme Date: Tue, 2 Feb 2021 14:54:43 +0000 (+0100) Subject: smbd: remove NT_STATUS_STOPPED_ON_SYMLINK status code check from get_file_handle_for_... X-Git-Tag: tevent-0.11.0~1818 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0d454f34db52d2903c830e1f1acd56a9a1dca04b;p=thirdparty%2Fsamba.git smbd: remove NT_STATUS_STOPPED_ON_SYMLINK status code check from get_file_handle_for_metadata() Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/dosmode.c b/source3/smbd/dosmode.c index ccfeaca124d..ea225a9b1ef 100644 --- a/source3/smbd/dosmode.c +++ b/source3/smbd/dosmode.c @@ -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;