1074
1064
/* Create the file world readable */
1075
if ((file= internal::my_create(target_path.file_string().c_str(), 0666, O_WRONLY|O_EXCL, MYF(MY_WME))) < 0)
1065
int file= internal::my_create(target_path.file_string().c_str(), 0666, O_WRONLY|O_EXCL, MYF(MY_WME));
1077
1068
(void) fchmod(file, 0666); // Because of umask()
1078
if (cache->init_io_cache(file, 0L, internal::WRITE_CACHE, 0L, 1, MYF(MY_WME)))
1069
if (cache->init_io_cache(file, 0, internal::WRITE_CACHE, 0L, 1, MYF(MY_WME)))
1080
1071
internal::my_close(file, MYF(0));
1081
1072
internal::my_delete(target_path.file_string().c_str(), MYF(0)); // Delete file on error, it was just created