Bugs item #2800958, was opened at 2009-06-04 10:59
Message generated for change (Tracker Item Submitted) made by p82420
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=703942&aid=2800958&group_id=125852

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Gaëtan Buchetet (p82420)
Assigned to: Nobody/Anonymous (nobody)
Summary: libssh2_scp_send() does not support files >4GB by default

Initial Comment:
Note: I'm using Solaris 9/10, libssh2 1.1

The 4th parameter of libssh2_scp_send() is of type size_t. With the ILP32 
(default) model, size_t is 32-bits wide. That makes impossible to transfer 
files larger than 4GB. I've not tested the LP64 model (accessible with -m64 on 
Sun Studio and probably gcc), but that should work. Nevertheless, size_t is not 
the appropriate C type for file sizes. POSIX uses off_t, which is either long 
long (-D_FILE_OFFSET_BITS=64 or LP64 model) or long.

See attached patch (I've used the off_t C type, but fill free to use any 64-bit 
wide type).

Gaëtan

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=703942&aid=2800958&group_id=125852

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
libssh2-devel mailing list
libssh2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libssh2-devel

Reply via email to