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

Matthew Vernon matthew at debian.org
Mon Sep 10 21:33:18 EST 2001


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)

would break things? It seems a simple fix to me...

Thanks,

Matthew

-- 
"At least you know where you are with Microsoft."
"True. I just wish I'd brought a paddle."
http://www.debian.org



More information about the openssh-unix-dev mailing list