s3: smbd: Remove unused check_name_with_privilege().
authorJeremy Allison <jra@samba.org>
Fri, 3 Dec 2021 18:13:13 +0000 (10:13 -0800)
committerRalph Boehme <slow@samba.org>
Sat, 11 Dec 2021 07:17:28 +0000 (07:17 +0000)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/filename.c

index b72efc51b93496b30ae10425add9d537dc94f72d..8aa0a6d48c8e7ced371540ea6631991e63ca0f46 100644 (file)
@@ -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.