Absolute SSH upload path treated as relative
If an absolute upload path for SSH is specified it is treated as relative.
Steps to reproduce:
- Prepare an SSH-capable machine, create a directory on it (e.g.
/srv/turris
) a set permissions to write for the user you want to use for upload. Don't jail the user inside his home directory. - Login to your Turris and try to upload some snapshot, e.g.
schnapps 311 ssh://192.168.1.200 /srv/turris
Expected results:
The given snapshot is uploaded to /srv/turris
on the given machine.
Actual results:
If /srv/turris
doesn't exist under the default working directory after logging in (usually the home directory) it fails with "Export takes target directory as argument!". If the directory exists under the default working directory the snapshot is uploaded into it which is unexpected/unwanted behavior.
Edited by Lukas Jelinek