[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SCP a file in my home folder


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

Follow-Ups:
Re: SCP a file in my home folderJakub Jelen <jjelen@xxxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org