diff options
| author | Luke Amery <lamery@ontech.com.au> | 2010-12-30 12:43:45 +1100 | 
|---|---|---|
| committer | Daniel Stenberg <daniel@haxx.se> | 2010-12-30 23:42:44 +0100 | 
| commit | 0dc8479b89d93ebf69220d2e7d2dd769ef3ee210 (patch) | |
| tree | b66d4bb71271b7efb09ffd3dd00bb75114ebddbf | |
| parent | 420eac5542ebf41a1812ae2250a0bc09517b999d (diff) | |
ssh: honour the CURLINFO_FTP_ENTRY_PATH curl_getinfo option
| -rw-r--r-- | lib/ssh.c | 3 | 
1 files changed, 3 insertions, 0 deletions
@@ -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;  | 
