[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Using SCP with files > 4 GB
[Thread Prev] | [Thread Next]
- Subject: Using SCP with files > 4 GB
- From: "Mark Riordan" <mriordan@xxxxxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Tue, 5 Apr 2011 10:50:09 -0500
- To: <libssh@xxxxxxxxxx>
I would like to enhance libssh to allow SCP transfer of files with sizes that won't fit into 32 bits. Here's what I propose to do: Change ssh_scp_request_get_size() to return a 64-bit type rather than size_t, which is 32 bits on some systems. Either change ssh_scp_push_file(ssh_scp scp, const char *filename, size_t size, int perms) so that the third parameter is a 64-bit type (compilers should promote existing calls with 32-bit size to 64-bit size) or, less preferably, introduce ssh_scp_push_file64 which takes a 64-bit size. Do you have any feedback on this? Thanks. Mark R
Re: Using SCP with files > 4 GB | Aris Adamantiadis <aris@xxxxxxxxxxxx> |