summaryrefslogtreecommitdiff
path: root/community/curlftpfs/ioerror.patch
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-08-06 23:14:28 +0000
committerroot <root@rshg054.dnsready.net>2011-08-06 23:14:28 +0000
commit7f2d7bd11daf0c654d4147cb91f9913bc587c276 (patch)
treef52f5e0fbbf78b3f77f034aa9fcb06346e363ed0 /community/curlftpfs/ioerror.patch
parent6eacc0759bca4167f2dcd67ce43bca78cb2a06ca (diff)
Sat Aug 6 23:14:27 UTC 2011
Diffstat (limited to 'community/curlftpfs/ioerror.patch')
-rw-r--r--community/curlftpfs/ioerror.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/community/curlftpfs/ioerror.patch b/community/curlftpfs/ioerror.patch
new file mode 100644
index 000000000..6ca1afb4f
--- /dev/null
+++ b/community/curlftpfs/ioerror.patch
@@ -0,0 +1,11 @@
+--- curlftpfs-0.9.2.orig/ftpfs.c 2008-04-30 03:05:47.000000000 +0400
++++ curlftpfs-0.9.2.orig/ftpfs.c 2011-01-20 20:33:38.000000000 +0300
+@@ -503,7 +503,7 @@ static void *ftpfs_write_thread(void *da
+
+ curl_easy_setopt_or_die(fh->write_conn, CURLOPT_URL, fh->full_path);
+ curl_easy_setopt_or_die(fh->write_conn, CURLOPT_UPLOAD, 1);
+- curl_easy_setopt_or_die(fh->write_conn, CURLOPT_INFILESIZE, -1);
++ curl_easy_setopt_or_die(fh->write_conn, CURLOPT_INFILESIZE, (curl_off_t)-1);
+ curl_easy_setopt_or_die(fh->write_conn, CURLOPT_READFUNCTION, write_data_bg);
+ curl_easy_setopt_or_die(fh->write_conn, CURLOPT_READDATA, fh);
+ curl_easy_setopt_or_die(fh->write_conn, CURLOPT_LOW_SPEED_LIMIT, 1);