]> granicus.if.org Git - curl/commit
SCP: relative path didn't work
authorDaniel Stenberg <daniel@haxx.se>
Fri, 21 Dec 2012 13:38:33 +0000 (14:38 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 21 Dec 2012 13:41:54 +0000 (14:41 +0100)
commitc30c557e4d2089953339fc669474091bdd505651
tree6c9b53b45ed95560e8d088d6e57316014fb85787
parentd738adc1fbda9e2e545185f9d1b0551fd2d669e6
SCP: relative path didn't work

When prefixing a path with /~/ it is supposed to be used relative to the
user's home directory but it didn't work. Now we cut off the entire
three byte sequenct "/~/" which seems to be how OpenSSH does it.

Bug: http://curl.haxx.se/bug/view.cgi?id=1173
Reported by: Balaji Parasuram
lib/ssh.c