summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Faulhammer <fauli@gentoo.org>2009-12-10 22:07:32 +0000
committerChristian Faulhammer <fauli@gentoo.org>2009-12-10 22:07:32 +0000
commit63029566f206e9160956b818811d09261f8b1e94 (patch)
tree6a3b8ce2a2c1f2ae96442bdf3e38e0c88bc05188 /net-fs/curlftpfs/files
parentDrop KDE SC-4.3.1. (diff)
downloadgentoo-2-63029566f206e9160956b818811d09261f8b1e94.tar.gz
gentoo-2-63029566f206e9160956b818811d09261f8b1e94.tar.bz2
gentoo-2-63029566f206e9160956b818811d09261f8b1e94.zip
fix net write problems on 64bit architectures. Patch found by Semen Maryasin <marsoft AT ya DOT ru> and reported in bug 294960
(Portage version: 2.1.6.13/cvs/Linux i686)
Diffstat (limited to 'net-fs/curlftpfs/files')
-rw-r--r--net-fs/curlftpfs/files/curlftpfs-0.9.2-64bit_filesize.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/net-fs/curlftpfs/files/curlftpfs-0.9.2-64bit_filesize.patch b/net-fs/curlftpfs/files/curlftpfs-0.9.2-64bit_filesize.patch
new file mode 100644
index 000000000000..38b6f33a2ba5
--- /dev/null
+++ b/net-fs/curlftpfs/files/curlftpfs-0.9.2-64bit_filesize.patch
@@ -0,0 +1,11 @@
+--- ftpfs.c.old 2009-11-28 14:28:05.000000000 +0300
++++ ftpfs.c 2009-11-28 14:28:19.000000000 +0300
+@@ -503,7 +503,7 @@
+
+ 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);