1*4882a593SmuzhiyunBorrowed from the curlftpfs_0.9.2-5 Debian package. 2*4882a593Smuzhiyun 3*4882a593SmuzhiyunCURLOPT_INFILESIZE does not support -1 arg. This fix bug #556012. 4*4882a593Smuzhiyun--- curlftpfs-0.9.2/ftpfs.c.old 2009-12-13 14:12:25.000000000 +0100 5*4882a593Smuzhiyun+++ curlftpfs-0.9.2/ftpfs.c 2009-12-13 14:12:32.000000000 +0100 6*4882a593Smuzhiyun@@ -503,7 +503,6 @@ 7*4882a593Smuzhiyun 8*4882a593Smuzhiyun curl_easy_setopt_or_die(fh->write_conn, CURLOPT_URL, fh->full_path); 9*4882a593Smuzhiyun curl_easy_setopt_or_die(fh->write_conn, CURLOPT_UPLOAD, 1); 10*4882a593Smuzhiyun- curl_easy_setopt_or_die(fh->write_conn, CURLOPT_INFILESIZE, -1); 11*4882a593Smuzhiyun curl_easy_setopt_or_die(fh->write_conn, CURLOPT_READFUNCTION, write_data_bg); 12*4882a593Smuzhiyun curl_easy_setopt_or_die(fh->write_conn, CURLOPT_READDATA, fh); 13*4882a593Smuzhiyun curl_easy_setopt_or_die(fh->write_conn, CURLOPT_LOW_SPEED_LIMIT, 1); 14