www.libssh2.org | Daily snapshots | Mailing list archive | Docs | Examples | github

Archive Index This month's Index

Subject: Re: sftp size of 2GB files

Re: sftp size of 2GB files

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 10 Jan 2011 18:56:01 +0100 (CET)

On Mon, 10 Jan 2011, Arno Schmitt wrote:

> I'm running libssh2 with sftp file transfer under Suse Linux 11.2, 64 Bit.
> Using function libssh2_sftp_readdir_ex() on a directory containing a
> 2GB=2^31 byte (exatcly) file reports file size = 18446744071562067968.
> I've changed method libssh2_uint64_t _libssh2_ntohu64(const unsigned char
> *buf)


It's not very clear to me though.

You changed it from what (or put in other words: "you should've provided the
patch as a diff -u output")? This exact function has already been fixed in git
(commit fd691deb1786caff). Are you saying that fix is bad or are you
(re-)fixing the bug we had in 1.2.7 and earlier?

  / daniel.haxx.se
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2011-01-10

the libssh2 team