opnsense-ports/sysutils/fusefs-encfs/files/patch-encfs_encfs.cpp
Franco Fichtner 58e5fc8069 */*: sync with upstream
Taken from: FreeBSD
2016-06-28 08:15:05 +02:00

18 lines
528 B
C++

--- encfs/encfs.cpp.orig 2015-03-24 20:45:16 UTC
+++ encfs/encfs.cpp
@@ -529,6 +529,15 @@ int encfs_open(const char *path, struct
return res;
}
+int encfs_create(const char *path, mode_t mode, struct fuse_file_info *file) {
+ int res = encfs_mknod(path, mode, 0);
+ if (res) {
+ return res;
+ }
+
+ return encfs_open(path, file);
+}
+
int _do_flush(FileNode *fnode) {
/* Flush can be called multiple times for an open file, so it doesn't
close the file. However it is important to call close() for some