Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 101038 - net-ftp/ftp fails retrieving files larger than 2GB
Summary: net-ftp/ftp fails retrieving files larger than 2GB
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 102441 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-08-01 16:29 UTC by Maik Musall
Modified: 2008-08-20 06:57 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maik Musall 2005-08-01 16:29:19 UTC
ftp> get htdocs_050801.tar.gz
local: htdocs_050801.tar.gz remote: htdocs_050801.tar.gz
200 PORT command successful. Consider using PASV.
150 Opening BINARY mode data connection for htdocs_050801.tar.gz (2707419892 bytes).
htdocs_050801.tar.gz: short write
426 Failure writing network stream.
2147483064 bytes received in 212 secs (9.9e+03 Kbytes/sec)


Reproducible: Always
Steps to Reproduce:
1. prepare a file larger than 2GB on your favourite ftp server
2. GET it

Actual Results:  
see Details

Expected Results:  
complete fetch. Installed lftp as a substitute which had no problem.
Comment 1 SpanKY gentoo-dev 2005-08-02 18:47:07 UTC
if you put these into your CFLAGS does it work ?
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
Comment 2 Maik Musall 2005-08-03 01:47:27 UTC
Yes, confirmed, that does it.

I would suggest to put these options to default for this package, since most of
the environment around it (filesystems, vsftpd, lftp...) is already
largefile-enabled, so this comes rather unexpected.

Maik
Comment 3 SpanKY gentoo-dev 2005-08-03 16:30:19 UTC
added to ftp-0.17-r5
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2005-08-13 16:23:24 UTC
*** Bug 102441 has been marked as a duplicate of this bug. ***
Comment 5 Panagiotis Christopoulos (RETIRED) gentoo-dev 2008-08-13 11:17:49 UTC
*** Bug 234599 has been marked as a duplicate of this bug. ***
Comment 6 Panagiotis Christopoulos (RETIRED) gentoo-dev 2008-08-13 11:20:53 UTC
Reopen as it seems that ftp-0.17-r6 and ftp-0.17-r7 have the same issue. See bug 234599
Comment 7 SpanKY gentoo-dev 2008-08-20 06:57:59 UTC
new bug -> new issue ... the reason for the breakage is different as things have changed