Skip to content

Commit

Permalink
mx_mysql: Display warning if reading mysql_default_file fails
Browse files Browse the repository at this point in the history
  • Loading branch information
mariux committed Aug 13, 2015
1 parent 4c02e2f commit c7ab653
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mx_mysql.c
Original file line number Diff line number Diff line change
Expand Up @@ -844,7 +844,8 @@ int mx_mysql_option_set_default_file(struct mx_mysql *mysql, char *fname)
mx_assert_return_minus_errno(mysql, EINVAL);

if (fname && (*fname == '/') && (euidaccess(fname, R_OK) != 0)) {
mx_log_info("MySQL ignoring defaults file: euidaccess(\"%s\", R_OK) failed: %m", fname);
mx_log_warning("MySQL ignoring defaults file: euidaccess(\"%s\", R_OK) failed: %m", fname);
mx_log_warning("MySQL falling back to mysql default config search path.", fname);
return -errno;
}

Expand Down

0 comments on commit c7ab653

Please sign in to comment.