summaryrefslogtreecommitdiffstats
path: root/devel/p5-IniConf
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1998-09-10 00:58:33 +0000
committerache <ache@FreeBSD.org>1998-09-10 00:58:33 +0000
commit97c0ddee4a1434c5f442b3c558845499fd2a4894 (patch)
tree27ae8a2cc0f6cc51eb6c8f1b3ae2cb45ba3a50b7 /devel/p5-IniConf
parent2a7f4463e494899988f06fcd52681d2cb200c4e0 (diff)
downloadFreeBSD-ports-97c0ddee4a1434c5f442b3c558845499fd2a4894.zip
FreeBSD-ports-97c0ddee4a1434c5f442b3c558845499fd2a4894.tar.gz
fix reading variables with multiple '='
Diffstat (limited to 'devel/p5-IniConf')
-rw-r--r--devel/p5-IniConf/files/patch-aa21
1 files changed, 19 insertions, 2 deletions
diff --git a/devel/p5-IniConf/files/patch-aa b/devel/p5-IniConf/files/patch-aa
index 49f4416..40db38b 100644
--- a/devel/p5-IniConf/files/patch-aa
+++ b/devel/p5-IniConf/files/patch-aa
@@ -1,5 +1,5 @@
-*** IniConf.pm.bak Fri Jul 11 09:39:59 1997
---- IniConf.pm Thu Sep 10 01:15:26 1998
+*** IniConf.pm.orig Fri Jul 11 09:39:59 1997
+--- IniConf.pm Thu Sep 10 04:49:00 1998
***************
*** 203,209 ****
\$SIG{$sig} = 'IGNORE';
@@ -17,3 +17,20 @@
}
\$SIG{$sig} = '$newhandler'
}
+***************
+*** 346,352 ****
+ $self->{v}{$sect} = {};
+ }
+ }
+! elsif (($parm, $val) = /\s*(\S+)\s*=\s*(.*)/) { # new parameter
+ $parm = lc($parm) if $nocase;
+ $self->{pCMT}{$sect}{$parm} = [@cmts];
+ @cmts = ( );
+--- 346,352 ----
+ $self->{v}{$sect} = {};
+ }
+ }
+! elsif (($parm, $val) = /\s*([^\s=]+)\s*=\s*(.*)/) { # new parameter
+ $parm = lc($parm) if $nocase;
+ $self->{pCMT}{$sect}{$parm} = [@cmts];
+ @cmts = ( );
OpenPOWER on IntegriCloud