SPDX: Mass-update to GPL-2.0-or-later
[exim.git] / src / util / ratelimit.pl
index aaa14fcc14667678edf4b10d54934fbb98a5f8ff..ce54fe6c31450734f6b3d276dc2fbe2f673187f9 100644 (file)
@@ -1,7 +1,11 @@
 #!/usr/bin/perl -wT
 #!/usr/bin/perl -wT
+# Copyright (c) The Exim Maintainers 2022
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 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 +28,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 is 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