mirror of
https://github.com/curl/curl.git
synced 2026-05-18 12:56:19 +03:00
parent
9fb5a943f5
commit
a4a56ec93e
4 changed files with 34 additions and 19 deletions
|
|
@ -1205,7 +1205,7 @@ static CURLcode ssh_statemach_act(struct connectdata *conn, bool *block)
|
|||
* also, every command takes at least one argument so we get that
|
||||
* first argument right now
|
||||
*/
|
||||
result = Curl_get_pathname(&cp, &sshc->quote_path1);
|
||||
result = Curl_get_pathname(&cp, &sshc->quote_path1, sshc->homedir);
|
||||
if(result) {
|
||||
if(result == CURLE_OUT_OF_MEMORY)
|
||||
failf(data, "Out of memory");
|
||||
|
|
@ -1230,7 +1230,7 @@ static CURLcode ssh_statemach_act(struct connectdata *conn, bool *block)
|
|||
|
||||
/* sshc->quote_path1 contains the mode to set */
|
||||
/* get the destination */
|
||||
result = Curl_get_pathname(&cp, &sshc->quote_path2);
|
||||
result = Curl_get_pathname(&cp, &sshc->quote_path2, sshc->homedir);
|
||||
if(result) {
|
||||
if(result == CURLE_OUT_OF_MEMORY)
|
||||
failf(data, "Out of memory");
|
||||
|
|
@ -1252,7 +1252,7 @@ static CURLcode ssh_statemach_act(struct connectdata *conn, bool *block)
|
|||
/* symbolic linking */
|
||||
/* sshc->quote_path1 is the source */
|
||||
/* get the destination */
|
||||
result = Curl_get_pathname(&cp, &sshc->quote_path2);
|
||||
result = Curl_get_pathname(&cp, &sshc->quote_path2, sshc->homedir);
|
||||
if(result) {
|
||||
if(result == CURLE_OUT_OF_MEMORY)
|
||||
failf(data, "Out of memory");
|
||||
|
|
@ -1277,7 +1277,7 @@ static CURLcode ssh_statemach_act(struct connectdata *conn, bool *block)
|
|||
/* rename file */
|
||||
/* first param is the source path */
|
||||
/* second param is the dest. path */
|
||||
result = Curl_get_pathname(&cp, &sshc->quote_path2);
|
||||
result = Curl_get_pathname(&cp, &sshc->quote_path2, sshc->homedir);
|
||||
if(result) {
|
||||
if(result == CURLE_OUT_OF_MEMORY)
|
||||
failf(data, "Out of memory");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue