summaryrefslogtreecommitdiff
path: root/lib/setopt.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2022-12-22 16:52:42 +0100
committerDaniel Stenberg <daniel@haxx.se>2022-12-22 23:04:47 +0100
commit31b9a322605127a6d7846f2c6b05f803ed20d738 (patch)
tree7cff55af6ee3bc2c2af30385a57b8cffb74f9412 /lib/setopt.c
parent80efd3bc61596a7091c8bdf2bb1e06358f663b58 (diff)
downloadcurl-31b9a322605127a6d7846f2c6b05f803ed20d738.tar.gz
urldata: make 'ftp_create_missing_dirs' depend on FTP || SFTP
Closes #10139
Diffstat (limited to 'lib/setopt.c')
-rw-r--r--lib/setopt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/setopt.c b/lib/setopt.c
index 46b8a99f3..691ce395a 100644
--- a/lib/setopt.c
+++ b/lib/setopt.c
@@ -1309,6 +1309,7 @@ CURLcode Curl_vsetopt(struct Curl_easy *data, CURLoption option, va_list param)
data->set.krb = (data->set.str[STRING_KRB_LEVEL]) ? TRUE : FALSE;
break;
#endif
+#if !defined(CURL_DISABLE_FTP) || !defined(USE_SSH)
case CURLOPT_FTP_CREATE_MISSING_DIRS:
/*
* An FTP/SFTP option that modifies an upload to create missing
@@ -1322,6 +1323,7 @@ CURLcode Curl_vsetopt(struct Curl_easy *data, CURLoption option, va_list param)
else
data->set.ftp_create_missing_dirs = (unsigned char)arg;
break;
+#endif
case CURLOPT_READDATA:
/*
* FILE pointer to read the file to be uploaded from. Or possibly