]> git.ipfire.org Git - thirdparty/curl.git/commit
ftp: fix prequotes for a directory in URL
authorBartosz Ruszczak <bruszczak48@gmail.com>
Fri, 14 Mar 2025 20:53:42 +0000 (21:53 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 20 Jun 2025 21:22:24 +0000 (23:22 +0200)
commitfdf50d64b8cd270bc733278f139dfd001d5cf0d7
tree6451a0ded2f5f2efcc955bfa6fbd17cbce2725cd
parent149d436457ba87ac5f19c3b9dfbfd6d1b5733d76
ftp: fix prequotes for a directory in URL

Allow prequotes to be sent after curl has changed the working directory,
just before the listing command if the URL is a directory.

FTP state machine is updated with the new FTP_LIST_PREQUOTE state and
FTP_RETR_LIST_TYPE type.

Test 754 verifies

Fixes #8602
Closes #17616
lib/ftp.c
lib/ftp.h
tests/data/Makefile.am
tests/data/test754 [new file with mode: 0644]