Loading sql/sql_class.cc +1 −1 Original line number Diff line number Diff line Loading @@ -961,7 +961,7 @@ static File create_file(THD *thd, char *path, sql_exchange *exchange, return -1; } /* Create the file world readable */ if ((file= my_create(path, 0666, O_WRONLY, MYF(MY_WME))) < 0) if ((file= my_create(path, 0666, O_WRONLY|O_EXCL, MYF(MY_WME))) < 0) return file; #ifdef HAVE_FCHMOD (void) fchmod(file, 0666); // Because of umask() Loading Loading
sql/sql_class.cc +1 −1 Original line number Diff line number Diff line Loading @@ -961,7 +961,7 @@ static File create_file(THD *thd, char *path, sql_exchange *exchange, return -1; } /* Create the file world readable */ if ((file= my_create(path, 0666, O_WRONLY, MYF(MY_WME))) < 0) if ((file= my_create(path, 0666, O_WRONLY|O_EXCL, MYF(MY_WME))) < 0) return file; #ifdef HAVE_FCHMOD (void) fchmod(file, 0666); // Because of umask() Loading