From f86db75948edfa9fb83fc7fd8d253a0ff53d3a0f Mon Sep 17 00:00:00 2001 From: Sebastian Messmer Date: Mon, 10 Nov 2014 23:51:45 +0100 Subject: [PATCH] Refactor --- src/CryFuse.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CryFuse.cpp b/src/CryFuse.cpp index f1eba600..65447269 100644 --- a/src/CryFuse.cpp +++ b/src/CryFuse.cpp @@ -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) { //printf("create(%s, %d, _)\n", path.c_str(), mode); try { - fileinfo->fh = _device->createFile(path, mode); + fileinfo->fh = _device->createAndOpenFile(path, mode); return 0; } catch (CryErrnoException &e) { return -e.getErrno();