curl >= 7.19.4 has a bug where it will return -1 if the Content-Length = 0. I reported this bug to the curl developers and had it fixed in trunk. Here's the curl bug that was reported and fixed: http://sourceforge.net/tracker/?func=detail&aid=2884561&group_id=976&atid=100976 I'm requesting the associated patch for this bug be added into the ebuilds for net-misc/curl until the next official release of curl is available, as this bug also affects sys-fs/s3fs, as a file size of 0 or directories in the S3 storage bucket shows up as size MAXINT and breaks applications. Here's a link to patch applied to trunk for this bug: http://curl.haxx.se/cvs.cgi/curl/lib/progress.c?r1=1.92&r2=1.93&view=patch Thanks, Gabriel Kuri
(In reply to comment #0) > curl >= 7.19.4 has a bug where it will return -1 if the Content-Length = 0. I > reported this bug to the curl developers and had it fixed in trunk. Here's the > curl bug that was reported and fixed: > > > http://sourceforge.net/tracker/?func=detail&aid=2884561&group_id=976&atid=100976 > > I'm requesting the associated patch for this bug be added into the ebuilds for > net-misc/curl until the next official release of curl is available, as this bug > also affects sys-fs/s3fs, as a file size of 0 or directories in the S3 storage > bucket shows up as size MAXINT and breaks applications. > > Here's a link to patch applied to trunk for this bug: > > http://curl.haxx.se/cvs.cgi/curl/lib/progress.c?r1=1.92&r2=1.93&view=patch > > Thanks, > Gabriel Kuri > Curl 7.19.7 was released today, which has this referenced bug fixed. Perhaps it would be better to just release an ebuild for curl-7.19.7, rather than applying a patch to the older ebuilds. Gabe
added 7.19.7 as requested. Thanks. if there's a bit more demand for a backport to 7.19.4 I'll do it but it seems only a few badly(?) behaved servers are affected.