Skip Menu |

This queue is for tickets about the Net-Server CPAN distribution.

Report information
The Basics
Id: 25682
Status: resolved
Priority: 0/
Queue: Net-Server

People
Owner: Nobody in particular
Requestors: carlos.velasco [...] newipnet.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.94
Fixed in: (no value)



Subject: syslog_logopt parser broken
In Server.pm, the parser for syslog_logopt is broken. Current: ($opt =~ /^((cons|ndelay|nowait|pid|nofatal)($|[,|]))*/) Suggested change: ($opt =~ /^(((cons|ndelay|nowait|pid|nofatal),*)*$)/) I am attaching a test script. Its exec output for a default $opt = "pid,nofatal", is: new: nofatal new2: pid,nofatal So I think the suggested RE is right.
Subject: testre.pl
my $opt = "pid,nofatal"; my $nuevo = ($opt =~ /^((cons|ndelay|nowait|pid|nofatal)($|[,|]))*/) ? $1 : 'pid'; my $nuevo2 = ($opt =~ /^(((cons|ndelay|nowait|pid|nofatal),*)*$)/) ? $1 : 'pid'; print "new: $nuevo\n"; print "new2: $nuevo2\n";
Thank you for noticing the error. We will correct it with the following: ($opt =~ /^( (?: (?:cons|ndelay|nowait|pid|nofatal) (?:$|[,|]) )* )/x)
Thank you for noticing the error. We will correct it with the following: ($opt =~ /^( (?: (?:cons|ndelay|nowait|pid|nofatal) (?:$|[,|]) )* )/x) This will be in 0.96