Fix crash after TLS channel shutdown
[exim.git] / src / util / ratelimit.pl
index 1f08a9929b7101e80fcbab74270b8e01dec6c5f6..e212fa2415ddf6500bbbbaf0cdb08515ba0b4ba4 100644 (file)
@@ -2,6 +2,8 @@
 
 use strict;
 
 
 use strict;
 
+BEGIN { pop @INC if $INC[-1] eq '.' };
+
 sub usage () {
   print <<END;
 usage: ratelimit.pl [options] <period> <regex> <logfile>
 sub usage () {
   print <<END;
 usage: ratelimit.pl [options] <period> <regex> <logfile>
@@ -24,7 +26,7 @@ options:
             whereas internally Exim computes sender rates to the
             accuracy of your computer's clock (typically 10ms).
 
             whereas internally Exim computes sender rates to the
             accuracy of your computer's clock (typically 10ms).
 
-<regex>     The second argumetnis a regular expression.
+<regex>     The second argument is a regular expression.
 
             Each line is matched against the regular expression.
             Lines that do not match are ignored. The regex may
 
             Each line is matched against the regular expression.
             Lines that do not match are ignored. The regex may