From: Luke Amery Date: Thu, 30 Dec 2010 01:43:45 +0000 (+1100) Subject: ssh: honour the CURLINFO_FTP_ENTRY_PATH curl_getinfo option X-Git-Tag: curl-7_21_4~111 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0dc8479b89d93ebf69220d2e7d2dd769ef3ee210;p=thirdparty%2Fcurl.git ssh: honour the CURLINFO_FTP_ENTRY_PATH curl_getinfo option --- diff --git a/lib/ssh.c b/lib/ssh.c index ffcb48b421..895e34ee40 100644 --- a/lib/ssh.c +++ b/lib/ssh.c @@ -985,6 +985,7 @@ static CURLcode ssh_statemach_act(struct connectdata *conn, bool *block) sshc->actualcode = CURLE_OUT_OF_MEMORY; break; } + conn->data->state.most_recent_ftp_entrypath = sshc->homedir; } else { /* Return the error type */ @@ -2072,6 +2073,7 @@ static CURLcode ssh_statemach_act(struct connectdata *conn, bool *block) Curl_safefree(sshc->homedir); sshc->homedir = NULL; + conn->data->state.most_recent_ftp_entrypath = NULL; state(conn, SSH_SESSION_DISCONNECT); break; @@ -2290,6 +2292,7 @@ static CURLcode ssh_statemach_act(struct connectdata *conn, bool *block) Curl_safefree(sshc->homedir); sshc->homedir = NULL; + conn->data->state.most_recent_ftp_entrypath = NULL; state(conn, SSH_SESSION_FREE); break;