Fix SPA authenticator, checking client-supplied data before using it. Bug 2571
[exim.git] / src / src / convert4r3.src
index b972f739f913db67e95d1cec7a21d7cda5dfd2f4..d0b94d15ee909b06d5700769fddf94fb945edd5e 100755 (executable)
@@ -1,5 +1,4 @@
-#! PERL_COMMAND -w
-# $Cambridge: exim/src/src/convert4r3.src,v 1.1 2004/10/07 10:39:01 ph10 Exp $
+#! PERL_COMMAND
 
 # This is a Perl script that reads an Exim run-time configuration file and
 # checks for settings that were valid prior to release 3.00 but which were
@@ -8,6 +7,20 @@
 
 # It is assumed that the input is a valid Exim configuration file.
 
+use warnings;
+BEGIN { pop @INC if $INC[-1] eq '.' };
+
+use Getopt::Long;
+use File::Basename;
+
+GetOptions(
+    'version' => sub {
+        print basename($0) . ": $0\n",
+            "build: EXIM_RELEASE_VERSIONEXIM_VARIANT_VERSION\n",
+            "perl(runtime): $^V\n";
+            exit 0;
+    },
+);
 
 ##################################################
 #             Analyse one line                   #