curl_path: bring back support for SFTP path ending in /~
authorDaniel Stenberg <daniel@haxx.se>
Tue, 25 Apr 2023 11:06:01 +0000 (13:06 +0200)
committerSamuel Henrique <samueloph@debian.org>
Fri, 8 May 2026 14:16:21 +0000 (07:16 -0700)
commit3475ac9db7d2575f282d63b1bbd90fb48bf3d56d
tree96625dd10dc1a185ebfc76526a261ded940d92c4
parent7e7e7eb3752c2689e4a06ba5387295bb4f1ae908
curl_path: bring back support for SFTP path ending in /~

libcurl used to do a directory listing for this case (even though the
documentation says a URL needs to end in a slash for this), but
4e2b52b5f7a3 modified the behavior.

This change brings back a directory listing for SFTP paths that are
specified exactly as /~ in the URL.

Reported-by: Pavel Mayorov
Fixes #11001
Closes #11023

Origin: upstream, https://github.com/curl/curl/commit/91b53efa4b6854dc3688f55bfb329b0cafcf5325
Bug: https://github.com/curl/curl/issues/11001
Last-Update: 2025-06-09

Gbp-Pq: Name fix-CVE-2023-27534-regression-1.patch
lib/curl_path.c