Skip to content

Commit

Permalink
Merge pull request #5289 from oleksandr-kachan/PS-9213-8.0
Browse files Browse the repository at this point in the history
PS-9213: Fix typo in condition in mysqld.cc::fix_secure_path()
  • Loading branch information
oleksandr-kachan authored Apr 24, 2024
2 parents 1e7554b + 8f0081c commit 068b575
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sql/mysqld.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12118,7 +12118,7 @@ static int fix_secure_path(const char *&opt_path, char *realpath,
bool force_priv_check = false;
DBUG_EXECUTE_IF("force_secure_file_priv_check", { force_priv_check = true; });

if (opt_initialize & !force_priv_check) opt_path = "";
if (opt_initialize && !force_priv_check) opt_path = "";
opt_nonempty = opt_path[0] ? true : false;

if (opt_nonempty && strlen(opt_path) > FN_REFLEN) {
Expand Down

0 comments on commit 068b575

Please sign in to comment.