Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 87986 - net-misc/netkit-rsh - rcp doesn't support files >2 GB
Summary: net-misc/netkit-rsh - rcp doesn't support files >2 GB
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-04 18:52 UTC by Radu Filip
Modified: 2007-07-12 14:43 UTC (History)
2 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 Radu Filip 2005-04-04 18:52:48 UTC
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
Comment 1 Liam Widdess 2005-10-20 06:04:36 UTC
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 
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-07-12 14:43:40 UTC
Been fixed as part of Bug 93215.