added zlib to submodules. Added build and link zlib, libssh in CMakeLists.txt

This commit is contained in:
vladimir.kuznetsov
2022-12-06 18:17:10 +03:00
parent a87610c856
commit 3742583508
5 changed files with 15 additions and 5 deletions
+1 -1
View File
@@ -410,7 +410,7 @@ ErrorCode ServerController::copyFileToRemoteHost(ssh_session& ssh, sftp_session&
char buffer[SFTP_TRANSFER_CHUNK_SIZE];
int length {sizeof (buffer)};
file = sftp_open(sftp, remote_path.c_str(), access_type, S_IRWXU);
file = sftp_open(sftp, remote_path.c_str(), access_type, 0);//S_IRWXU);
if (file == NULL) {
return ErrorCode::SshSftpError;