Lines 1-16
Link Here
|
1 |
--- encfs/encfs.cpp.orig 2015-03-24 20:45:16 UTC |
1 |
--- encfs/encfs.cpp.orig 2015-03-24 20:45:16 UTC |
2 |
+++ encfs/encfs.cpp |
2 |
+++ encfs/encfs.cpp |
3 |
@@ -529,6 +529,17 @@ int encfs_open(const char *path, struct |
3 |
@@ -529,6 +529,15 @@ int encfs_open(const char *path, struct |
4 |
return res; |
4 |
return res; |
5 |
} |
5 |
} |
6 |
|
6 |
|
7 |
+int encfs_create(const char *path, mode_t mode, struct fuse_file_info *file) |
7 |
+int encfs_create(const char *path, mode_t mode, struct fuse_file_info *file) { |
8 |
+{ |
8 |
+ int res = encfs_mknod(path, mode, 0); |
9 |
+ int res; |
9 |
+ if (res) { |
10 |
+ |
|
|
11 |
+ res = encfs_mknod(path, mode, 0); |
12 |
+ if (res) |
13 |
+ return res; |
10 |
+ return res; |
|
|
11 |
+ } |
14 |
+ |
12 |
+ |
15 |
+ return encfs_open(path, file); |
13 |
+ return encfs_open(path, file); |
16 |
+} |
14 |
+} |