cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: >2 GB file support

From: Vladimír Třebický <trebicky_at_xhost.cz>
Date: Mon, 18 Aug 2003 15:22:52 +0200

Hi,

I tried Rob's patch announced at

http://curl.haxx.se/mail/lib-2003-08/0145.html

on my 7.10.6.

I'm trying to upload >2GB file via ftp. My problem occures on line
2838 in src/main.c:

infd=(FILE *) fopen(config->infile, "rb");

where both !infd and stat(config->infile, &fileinfo) have failed.
Naturally, when I comment out return CURLE_READ_ERROR;, the program
segfaults.

I put errno and strerror(errno) to helpf and:

curl: Can't open 'backup-20030818-142551'!, errno 27: File too large

I suppose the problem isn't in cURL source but somewhere in system
header files. Do you have any experience with that kind of problem?

I have LFS4.0 with generic gcc version 3.2.3:

Configured with: ../gcc-3.2.3/configure --prefix=/usr --enable-shared --enable-threads=posix --with-slibdir=/lib --enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 3.2.3

and glibc 2.3.2 compiled without any special options.

Thanks,

Vladimir Trebicky

-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
Received on 2003-08-18