[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SCP a file in my home folder
[Thread Prev] | [Thread Next]
- Subject: SCP a file in my home folder
- From: Guy Morand <guy@xxxxxxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Wed, 17 Jun 2020 09:22:52 +0200
- To: libssh@xxxxxxxxxx
Hallo libssh developers,I would like to copy a file on a remote device using libssh. With 0.8.7, it was working great with something like:
```
_scp_handle = ssh_scp_new(_ssh_session, SSH_SCP_WRITE, "~");
// ....
ssh_scp_push_file(_scp_handle, "my-file.txt",
_update_package.size(), 0666)
```
But with newer version, this result in a file called "~" in my home
folder. The home folder is not in the standard "/home/" directory, and
don't want to hard code the path.
Without being 100% sure, I suspect this problem was introduced when fixing CVE-2019-14889.
What am I doing wrong? Any suggestion? Kind regards, Guy Morand
| Re: SCP a file in my home folder | Jakub Jelen <jjelen@xxxxxxxxxx> |