/[smecontribs]/rpms/smeserver-geoip/contribs9/smeserver-geoip-fix-city-createlinks.patch
ViewVC logotype

Annotation of /rpms/smeserver-geoip/contribs9/smeserver-geoip-fix-city-createlinks.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Mon Oct 29 11:23:10 2018 UTC (6 years, 1 month ago) by jcrisp
Branch: MAIN
CVS Tags: smeserver-geoip-1_2-6_el6_sme, smeserver-geoip-1_2-14_el6_sme, smeserver-geoip-1_2-5_el6_sme, smeserver-geoip-1_2-7_el6_sme, smeserver-geoip-1_2-11_el6_sme, smeserver-geoip-1_2-10_el6_sme, smeserver-geoip-1_2-4_el6_sme, smeserver-geoip-1_2-13_el6_sme, smeserver-geoip-1_2-3_el6_sme, smeserver-geoip-1_2-12_el6_sme, smeserver-geoip-1_2-8_el6_sme, smeserver-geoip-1_2-9_el6_sme, HEAD
* Mon Oct 29 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 1.2-3.sme
- Fix Use of uninitialized value $city in string eq
- Fix createlinks geoip-update action

1 jcrisp 1.1 diff -ruN smeserver-geoip-1.2.old/createlinks smeserver-geoip-1.2/createlinks
2     --- smeserver-geoip-1.2.old/createlinks 2018-10-29 11:10:49.225239125 +0100
3     +++ smeserver-geoip-1.2/createlinks 2018-10-29 12:20:27.873192195 +0100
4     @@ -15,7 +15,7 @@
5    
6    
7    
8     -#my $event = "geoipupdate";
9     +my $event = "geoip-update";
10    
11     foreach (qw(
12     /var/service/qpsmtpd/config/badcountries
13     @@ -24,7 +24,7 @@
14     ))
15     {
16     templates2events("$_", qw(
17     - geoipupdate
18     + geoip-update
19     ));
20     }
21    
22     diff -ruN smeserver-geoip-1.2.old/root/usr/share/qpsmtpd/plugins/check_badcountries smeserver-geoip-1.2/root/usr/share/qpsmtpd/plugins/check_badcountries
23     --- smeserver-geoip-1.2.old/root/usr/share/qpsmtpd/plugins/check_badcountries 2018-10-29 11:10:49.225239125 +0100
24     +++ smeserver-geoip-1.2/root/usr/share/qpsmtpd/plugins/check_badcountries 2018-10-29 11:15:33.708125673 +0100
25     @@ -261,7 +261,7 @@
26     }
27    
28     # City Information in case we want to play later
29     - my $city = $self->qp->connection->notes('geoip_city');
30     + my $city = $self->qp->connection->notes('geoip_city') // '';
31     #warn ("At City (check): $city");
32     if ($city eq '') {
33     $self->log(LOGINFO, "Information: City NA RemoteIP $ip");

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed