This commit is contained in:
Sebastian Messmer 2014-11-10 23:51:45 +01:00
parent 6b8c205916
commit f86db75948

View File

@ -327,7 +327,7 @@ int CryFuse::access(const path &path, int mask) {
int CryFuse::create(const path &path, mode_t mode, fuse_file_info *fileinfo) { int CryFuse::create(const path &path, mode_t mode, fuse_file_info *fileinfo) {
//printf("create(%s, %d, _)\n", path.c_str(), mode); //printf("create(%s, %d, _)\n", path.c_str(), mode);
try { try {
fileinfo->fh = _device->createFile(path, mode); fileinfo->fh = _device->createAndOpenFile(path, mode);
return 0; return 0;
} catch (CryErrnoException &e) { } catch (CryErrnoException &e) {
return -e.getErrno(); return -e.getErrno();