I have an Intel P4, with a Gentoo 2004.3 and with a 2.4.28-gentoo-r8 kernel compiled with support for large files. When I use rcp to transfer a large file (>3 GB) on a different machine I get a "file too large" (no need to mention that from other machines I can rcp files larger than 2 GB with no problem). However, I can scp exactly the same file to the exactly the same other machine (which runs a RH 9), so I guess it is not a kernel issue. I was looking for a USE flag related to support for large files and I found no one. `emerge -pv netmisc/netkit-rsh` shows only "pam" as a possible flag. How can I compile netmisc/netkit-rsh with support for very large files? How I can be sure that all software in a Gentoo installation support files larger than 2 GB? I am trying to deploy Gentoo into an enterprise environment where files several tens or hundreds GB large are very common. As a quick workaround, I copied over a rcp binary from a RH 9 (and it worked!), but I really hate to patch Gentoo this way in the future. I know that rcp is not as secure as scp, but because it is a production environment, I cannot change the workflow as I wish. Even this Gentoo box is a hardly tolerated experiment, and I must make it work just like other machines. I was looking into the RPM SPEC for RCP on RedHat 9 and I saw these options: -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 Then I re-emerged net-misc/netkit-rsh with: CFLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" emerge net-misc/netkit-rsh all went ok but now when I use RCP I get: rcp: protocol screwup: size not delimited I also looked for help on gentoo user mailing list but with no luck. Thanks Reproducible: Always Steps to Reproduce: rcp file_large_than_2gb user@remote_machine: Actual Results: I got an error: rcp: file too large Expected Results: Simply copy the file I think the bug description is descriptive enough
I have just run into this bug with rcp on a vanilla x86 gentoo install - so i can confirm that it is easily reproducible! The compile flags for rsh should be fixed.. crossing my fingers that rsync can handle it.. liam
Been fixed as part of Bug 93215.