Description of problem: Problem with copying files greater than 2GB through built in mc (mc-4.6.1a-4.FC4) ftp. After copied 2GB data, mc fall into an infinited loop taking up to 76% CPU. Version-Release number of selected component (if applicable): mc-4.6.1a-4.FC4 How reproducible: Try copy file greater than 2GB through built in mc ftp service. Steps to Reproduce: 1. Select Right->Ftp connection from main menu in mc. 2. Give right ftp server address. 3. Try to copy a file greater than 2GB from remote server Actual results: Infinited loop during copying and average 70% of CPU usage. Expected results: Correct finishing of copying. Additional info: None.
Mysteriously it works for me when downloading 2.4GB file from a remote machine using internal mc's ftp. However when looking into the code I see bad things: from vfs/ftpfs.c: static int ftpfs_linear_read (struct vfs_class *me, struct vfs_s_fh *fh, void *buf, int len) { int n; struct vfs_s_super *super = FH_SUPER; while ((n = read (FH_SOCK, buf, len))<0) { if ((errno == EINTR) && !got_interrupt()) continue; break; } ... So at the first look the ftp linear read should work for maximum of 2^31-1 bytes to be read....
Do you still see problems with copying >2GB files? It seems to be fixed in fc6 and on.
Fedora Core 4 is no longer maintained. Setting status to "INSUFFICIENT_DATA". If you can reproduce this bug in the current Fedora release, please reopen this bug and assign it to the corresponding Fedora version.