From: Jeremy Allison Date: Fri, 3 Dec 2021 18:13:13 +0000 (-0800) Subject: s3: smbd: Remove unused check_name_with_privilege(). X-Git-Tag: tdb-1.4.6~334 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02f840308d5e265eab7dcc90029f7defb3f79809;p=thirdparty%2Fsamba.git s3: smbd: Remove unused check_name_with_privilege(). Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- diff --git a/source3/smbd/filename.c b/source3/smbd/filename.c index b72efc51b93..8aa0a6d48c8 100644 --- a/source3/smbd/filename.c +++ b/source3/smbd/filename.c @@ -1499,27 +1499,6 @@ static NTSTATUS check_name(connection_struct *conn, return NT_STATUS_OK; } -#if 0 -/**************************************************************************** - Must be called as root. Creates the struct privilege_paths - attached to the struct smb_request if this call is successful. -****************************************************************************/ - -static NTSTATUS check_name_with_privilege(connection_struct *conn, - struct smb_request *smbreq, - const struct smb_filename *smb_fname) -{ - NTSTATUS status = check_veto_path(conn, smb_fname); - - if (!NT_STATUS_IS_OK(status)) { - return status; - } - return check_reduced_name_with_privilege(conn, - smb_fname, - smbreq); -} -#endif - /**************************************************************************** Check if two filenames are equal. This needs to be careful about whether we are case sensitive.