From: Daniel Stenberg Date: Wed, 28 Feb 2024 07:02:49 +0000 (+0100) Subject: getparam: make --ftp-ssl work again X-Git-Tag: curl-8_7_0~114 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=65405459d58abed6d5b6ea20ccdca972aa807f9c;p=thirdparty%2Fcurl.git getparam: make --ftp-ssl work again Follow-up to 9e4e527 which accidentally broke it Reported-by: Jordan Brown Fixes #13006 Closes #13007 --- diff --git a/src/tool_getparam.c b/src/tool_getparam.c index 4c910fd73c..23fe3106e6 100644 --- a/src/tool_getparam.c +++ b/src/tool_getparam.c @@ -1593,6 +1593,7 @@ ParameterError getparameter(const char *flag, /* f or -long-flag */ url->flags |= GETOUT_URL; } break; + case C_FTP_SSL: /* --ftp-ssl */ case C_SSL: /* --ssl */ if(toggle && !feature_ssl) err = PARAM_LIBCURL_DOESNT_SUPPORT; @@ -1600,7 +1601,8 @@ ParameterError getparameter(const char *flag, /* f or -long-flag */ config->ftp_ssl = toggle; if(config->ftp_ssl) warnf(global, - "--ssl is an insecure option, consider --ssl-reqd instead"); + "--%s is an insecure option, consider --ssl-reqd instead", + a->lname); } break; case C_FTP_PASV: /* --ftp-pasv */