summaryrefslogtreecommitdiffstats
path: root/spampd/perl-5.18-fixes.patch
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2013-05-28 21:46:20 +0200
committerFlorian Pritz <bluewind@xinu.at>2013-05-28 21:46:20 +0200
commit81a50a766a046569b5ce229b4875456da8bca06e (patch)
tree7cd6dc9109ba264d5e1ddeed242515c0e787dfdb /spampd/perl-5.18-fixes.patch
parent7071c6fff1e0e4a3159f088a5a30d0fb2c32a997 (diff)
downloadaur-packages-81a50a766a046569b5ce229b4875456da8bca06e.tar.gz
aur-packages-81a50a766a046569b5ce229b4875456da8bca06e.tar.xz
and more perl 5.18 fixes
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'spampd/perl-5.18-fixes.patch')
-rw-r--r--spampd/perl-5.18-fixes.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/spampd/perl-5.18-fixes.patch b/spampd/perl-5.18-fixes.patch
new file mode 100644
index 0000000..9b4637b
--- /dev/null
+++ b/spampd/perl-5.18-fixes.patch
@@ -0,0 +1,42 @@
+diff --git a/spampd b/spampd
+index 7b1f234..2798d50 100644
+--- a/spampd
++++ b/spampd
+@@ -937,6 +937,10 @@ if ( !$options{logsock} ) {
+ };
+ }
+
++# untaint some args to prevent errors in other modules
++($pidfile) = ($pidfile =~ /^(.+)$/);
++($relayhost) = ($relayhost =~ /^(.+)$/);
++($relayport) = ($relayport =~ /^(.+)$/);
+
+ my $server = bless {
+ server => {host => $host,
+@@ -1147,10 +1151,10 @@ L<http://www.WorldDesign.com/index.cfm/rd/mta/spampd.htm>.
+
+ =head1 Requires
+
+-=over 5
+-
+ Perl modules:
+
++=over 5
++
+ =item B<Mail::SpamAssassin>
+
+ =item B<Net::Server::PreForkSimple>
+@@ -1478,11 +1482,11 @@ Prints usage information.
+
+ =head2 Deprecated Options
+
+-=over 5
+-
+ The following options are no longer used but still accepted for backwards
+ compatibility with prevoius I<spampd> versions:
+
++=over 5
++
+ =item B<--dead-letters>
+
+ =item B<--heloname>