summaryrefslogtreecommitdiff
path: root/mail/majordomo/patches/patch-an
diff options
context:
space:
mode:
authorspz <spz@pkgsrc.org>2010-10-16 10:30:56 +0000
committerspz <spz@pkgsrc.org>2010-10-16 10:30:56 +0000
commit194f220edd0e33384235947009f0bd2558696b1b (patch)
tree739329cd7e0cff77f4844d84ee768841ecbe4626 /mail/majordomo/patches/patch-an
parentf61c2d0bed9d97867f3a033946bf7d9e6da25ecd (diff)
downloadpkgsrc-194f220edd0e33384235947009f0bd2558696b1b.tar.gz
- patch majordomo.pl for perl 5.12 compat (split does not return @_)
Patch submitted by Todd Kover in PR pkg/43974 -> bump pkgrev - make myself maintainer - add restriction (majordomos license does not allow redistribution of modified binaries)
Diffstat (limited to 'mail/majordomo/patches/patch-an')
-rw-r--r--mail/majordomo/patches/patch-an22
1 files changed, 22 insertions, 0 deletions
diff --git a/mail/majordomo/patches/patch-an b/mail/majordomo/patches/patch-an
new file mode 100644
index 00000000000..3e82aaaa95d
--- /dev/null
+++ b/mail/majordomo/patches/patch-an
@@ -0,0 +1,22 @@
+$NetBSD: patch-an,v 1.1 2010/10/16 10:30:56 spz Exp $
+
+--- majordomo.pl.orig 2000-01-07 12:32:04.000000000 +0000
++++ majordomo.pl
+@@ -95,14 +95,14 @@ sub main'ParseAddrs {
+ local($_) = shift;
+ 1 while s/\([^\(\)]*\)//g; # strip comments
+ 1 while s/"[^"]*"\s//g; # strip comments"
+- split(/,/); # split into parts
+- foreach (@_) {
++ my @parts = split(/,/); # split into parts
++ foreach (@parts) {
+ 1 while s/.*<(.*)>.*/$1/;
+ s/^\s+//;
+ s/\s+$//;
+ }
+
+- @_;
++ @parts;
+ }
+
+ # Check to see if a list is valid. If it is, return the validated list