summarylogtreecommitdiffstats
path: root/0000-Getopt-Long-duplicate-specfication-disable-ssl.patch
blob: 2dff43ec440e3a9aebe5f7e189131ddcb9de4b97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
diff -pNaru5 a/smtp-cli b/smtp-cli
--- a/smtp-cli	2019-10-16 03:38:09.000000000 -0400
+++ b/smtp-cli	2024-10-31 15:51:40.483700188 -0400
@@ -160,14 +160,17 @@ GetOptions (
 	'auth-cram-md5' => \$use_cram_md5,
 	'disable-ehlo' => sub { $ehlo_ok = 0; },
 	'force-ehlo' => sub { $ehlo_ok = 2; },
 	'hello-host|ehlo-host|helo-host=s' => \$hello_host,
 	'auth|enable-auth' => \$auth_ok,
-	'disable-starttls|disable-tls|disable-ssl' =>
+# New versions of GetOpt::Long do not allow multiple use of command line options
+# Duplicate specification "disable-ssl" for option "disable-ssl"
+#	'disable-starttls|disable-tls|disable-ssl' =>
+	'disable-starttls|disable-tls' =>
 		sub { $starttls_ok = 0; },
 	'ssl' => sub { $ssl = 1 },
-	'disable-ssl' => sub { $ssl = 0 },
+	'disable-ssl' => sub { $ssl = 0; $starttls_ok = 0 },
 	'mail-from=s' => \$mail_from,
 	'rcpt-to=s' => \@rcpt_to,
 	'from=s' => \$from,
 	'to=s' => \@to,
 	'cc=s' => \@cc,