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>
Sat, 19 Jul 2025 19:04:59 +0000 (21:04 +0200)
commit5c04328d8d0a9b39ebbc9734588722bbbdbc085c
tree9a314ae0b922a1dcfaa352ee0a96e7ae57137e52
parent18cfc50a4c8c5c0315f537465b3254dffa16a8e8
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