mirror of
https://github.com/MariaDB/server.git
synced 2025-02-01 03:21:53 +01:00
Merge
This commit is contained in:
commit
358b8a4914
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue