scp doesn't work with large (>2GB) files

Corinna Vinschen vinschen at redhat.com
Mon Sep 10 23:51:50 EST 2001


On Mon, Sep 10, 2001 at 12:33:18PM +0100, Matthew Vernon wrote:
> Hi,
> 
> A bug I've had reported is that scp doesn't work with large files
> (Debian bug number 106809). The problem seems to be scp.c:504:
> 
> 		if ((fd = open(name, O_RDONLY, 0)) < 0)
> 
> Is there some reason why making that 
> 		if ((fd = open(name, O_RDONLY|O_LARGEFILE, 0)) < 0)

#ifdef O_LARGEFILE
	if ((fd = open(name, O_RDONLY|O_LARGEFILE, 0)) < 0)
#endif

would perhaps fit better.  E.g. Cygwin has no O_LARGEFILE.

Corinna

-- 
Corinna Vinschen
Cygwin Developer
Red Hat, Inc.
mailto:vinschen at redhat.com



More information about the openssh-unix-dev mailing list