urldata: FILE is not a list-only protocol

The struct field thus does not depend on the presence of it

Closes #18525
This commit is contained in:
Daniel Stenberg 2025-09-11 16:52:40 +02:00
parent c184f464f7
commit 16cd81ed69
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -116,7 +116,7 @@ typedef unsigned int curl_prot_t;
#define PROTO_FAMILY_SSH (CURLPROTO_SCP|CURLPROTO_SFTP)
#if !defined(CURL_DISABLE_FTP) || defined(USE_SSH) || \
!defined(CURL_DISABLE_POP3) || !defined(CURL_DISABLE_FILE)
!defined(CURL_DISABLE_POP3)
/* these protocols support CURLOPT_DIRLISTONLY */
#define CURL_LIST_ONLY_PROTOCOL 1
#endif