MySQL 9.4.0
Source Code Documentation
secure_file.h File Reference
#include "my_sys.h"
#include "mysql/strings/m_ctype.h"
#include "nulls.h"

Go to the source code of this file.

Functions

bool is_secure_file_path (const char *path, const char *opt_secure_file_priv, CHARSET_INFO *system_charset_info, CHARSET_INFO *files_charset_info, bool lower_case_file_system)
 Test a file path to determine if the path is compatible with the secure file path restriction. More...
 

Function Documentation

◆ is_secure_file_path()

bool is_secure_file_path ( const char *  path,
const char *  opt_secure_file_priv,
CHARSET_INFO system_charset_info,
CHARSET_INFO files_charset_info,
bool  lower_case_file_system 
)

Test a file path to determine if the path is compatible with the secure file path restriction.

Parameters
pathnull terminated character string
opt_secure_file_privsecure_file_priv content
system_charset_infosystem charset
files_charset_infofiles charset
lower_case_file_systemtrue if lower case file system, false otherwise
Return values
trueThe path is secure
falseThe path isn't secure