scp doesn't work with large (>2GB) files
Markus Friedl
markus at openbsd.org
Wed Sep 12 20:52:53 EST 2001
why is O_LARGEFILE needed? is this some standard API?
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)
>
> 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