Fix creat

This commit is contained in:
Sebastian Messmer 2014-11-12 23:13:00 +01:00
parent b265dd9313
commit 27057f8c82

View File

@ -108,7 +108,7 @@ int CryDevice::createAndOpenFile(const bf::path &path, mode_t mode) {
// This is slow. Improve!
auto dir = LoadDir(path.parent_path());
auto file = dir->createFile(path.filename().native(), mode);
return openFile(*file, O_CREAT | O_WRONLY | O_TRUNC);
return openFile(*file, O_WRONLY | O_TRUNC);
}
void CryDevice::mkdir(const bf::path &path, mode_t mode) {