mirror of
https://github.com/curl/curl.git
synced 2026-04-15 01:05:56 +08: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
@ -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…
Reference in New Issue
Block a user