1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-23 09:10:43 +00:00

Provide a patch to quiece a runtime warning for a deprecated form of pattern

matching.
This commit is contained in:
Emanuel Haupt 2012-04-18 07:50:12 +00:00
parent 8813f8a043
commit 5682ce6fc5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=294994
2 changed files with 12 additions and 1 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= hploscripts
PORTVERSION= 3.0
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= sysutils perl5
MASTER_SITES= CRITICAL

View File

@ -0,0 +1,11 @@
--- ./locfg.pl.orig 2012-04-18 09:45:56.000000000 +0200
+++ ./locfg.pl 2012-04-18 09:46:13.000000000 +0200
@@ -143,7 +143,7 @@
$ln =~ s/\r|\n//g;
# Find LOGIN tag.
- if ((($ln =~ ?<[ ]*LOGIN[ ]?) || ($ln =~ ?<[ ]*LOGIN$?)) && ($pword) && ($uname)) {
+ if ((($ln =~m ?<[ ]*LOGIN[ ]?) || ($ln =~m ?<[ ]*LOGIN$?)) && ($pword) && ($uname)) {
while( !($ln =~ m/\>/i) ) {
$ln = <F>;
}