mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
sysutils/fusefs-encfs: Fix "Function not implemented" on create operations
Upstream fix was:
aacce54f42
PR: 210532
Submitted by: Dmitri Goutnik <dg@syrec.org> (maintainer)
This commit is contained in:
parent
71a9be4c7a
commit
1e5d77df5e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=417634
3 changed files with 16 additions and 9 deletions
|
@ -1,16 +1,14 @@
|
|||
--- encfs/encfs.cpp.orig 2015-03-24 20:45:16 UTC
|
||||
+++ encfs/encfs.cpp
|
||||
@@ -529,6 +529,17 @@ int encfs_open(const char *path, struct
|
||||
@@ -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;
|
||||
+
|
||||
+ res = encfs_mknod(path, mode, 0);
|
||||
+ if (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);
|
||||
+}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
--- encfs/main.cpp.orig 2016-06-18 20:53:13 UTC
|
||||
--- encfs/main.cpp.orig 2015-03-24 20:45:16 UTC
|
||||
+++ encfs/main.cpp
|
||||
@@ -27,6 +27,7 @@
|
||||
#include <sys/time.h>
|
||||
|
@ -8,3 +8,12 @@
|
|||
|
||||
#include <getopt.h>
|
||||
|
||||
@@ -599,7 +600,7 @@ int main(int argc, char *argv[]) {
|
||||
encfs_oper.init = encfs_init;
|
||||
encfs_oper.destroy = encfs_destroy;
|
||||
// encfs_oper.access = encfs_access;
|
||||
- // encfs_oper.create = encfs_create;
|
||||
+ encfs_oper.create = encfs_create;
|
||||
encfs_oper.ftruncate = encfs_ftruncate;
|
||||
encfs_oper.fgetattr = encfs_fgetattr;
|
||||
// encfs_oper.lock = encfs_lock;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
--- encfs/makeKey.cpp.orig 2016-06-18 20:53:44 UTC
|
||||
--- encfs/makeKey.cpp.orig 2015-03-24 20:45:16 UTC
|
||||
+++ encfs/makeKey.cpp
|
||||
@@ -25,6 +25,7 @@
|
||||
#include "openssl.h"
|
||||
|
|
Loading…
Add table
Reference in a new issue