diff options
Diffstat (limited to 'system/curlftpfs/patches/curlftpfs-0.9.2-create-fix.patch')
-rw-r--r-- | system/curlftpfs/patches/curlftpfs-0.9.2-create-fix.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/system/curlftpfs/patches/curlftpfs-0.9.2-create-fix.patch b/system/curlftpfs/patches/curlftpfs-0.9.2-create-fix.patch new file mode 100644 index 0000000000..4389d9d18a --- /dev/null +++ b/system/curlftpfs/patches/curlftpfs-0.9.2-create-fix.patch @@ -0,0 +1,33 @@ +diff -NaurEbBH -x '*.Plo' -x Makefile -x '*.log' -x '*.status' -x '*.list' -x '*.Po' -x libtool -x nbproject curlftpfs-0.9.2.orig/ftpfs.c curlftpfs-0.9.2/ftpfs.c +--- curlftpfs-0.9.2.orig/ftpfs.c 2013-05-12 14:31:57.000000000 +0400 ++++ curlftpfs-0.9.2/ftpfs.c 2013-05-12 14:29:00.906721322 +0400 +@@ -759,13 +759,13 @@ + err = -ENOTSUP; + } + +- if ((fi->flags & O_EXCL)) +- { +- DEBUG(1, "opening %s with O_EXCL - testing existence\n", path); +- int exists_r = test_exists(path); +- if (exists_r != -ENOENT) +- err = -EACCES; +- } ++// if ((fi->flags & O_EXCL)) ++// { ++// DEBUG(1, "opening %s with O_EXCL - testing existence\n", path); ++// int exists_r = test_exists(path); ++// if (exists_r != -ENOENT) ++// err = -EACCES; ++// } + + if (!err) + { +@@ -816,6 +816,8 @@ + #if FUSE_VERSION >= 25 + static int ftpfs_create(const char* path, mode_t mode, + struct fuse_file_info* fi) { ++// return ftpfs_open_common(path, mode, fi); ++ ftpfs_mknod(path, mode, NULL); + return ftpfs_open_common(path, mode, fi); + } + #endif |