mirror of
https://github.com/curl/curl.git
synced 2026-04-18 04:01:41 +03:00
curl_path: make SFTP handle a path like /~ properly.
... without a trailing slash. Fixes #17534 Closes #17542
This commit is contained in:
parent
c314759c4c
commit
0ede81dcc6
1 changed files with 6 additions and 0 deletions
|
|
@ -84,6 +84,12 @@ CURLcode Curl_getworkingpath(struct Curl_easy *data,
|
|||
return CURLE_OUT_OF_MEMORY;
|
||||
}
|
||||
}
|
||||
else {
|
||||
if(curlx_dyn_add(&npath, "/")) {
|
||||
free(working_path);
|
||||
return CURLE_OUT_OF_MEMORY;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(curlx_dyn_len(&npath)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue