[Logcheck-devel] Bug#302678: Incorrect pattern for matching /var/run/dnsmasq/resolv.conf

Jamie L. Penman-Smithson jamie at silverdream.org
Fri Apr 15 10:02:18 UTC 2005


package logcheck-database
tags 302678 pending
thanks

On Fri, 2005-04-15 at 09:40 +0200, Thomas Hood wrote:
> The pattern you added in version 1.2.37:
> 
> ^\w{3} [ :0-9]{11} [._[:alnum:]-]+ dnsmasq\[[[:digit:]]+\]: reading /etc/(run/dnsmasq/)?resolv.conf$
> 
> is obviously not equivalent to the two patterns it was meant to replace:
> 
> ^\w{3} [ :0-9]{11} [._[:alnum:]-]+ dnsmasq\[[[:digit:]]+\]: reading /etc/resolv.conf$
> ^\w{3} [ :0-9]{11} [._[:alnum:]-]+ dnsmasq\[[[:digit:]]+\]: reading /var/run/dnsmasq/resolv.conf$
> 
> Notice that in the second case the file is in /var/.

I've added the following rule to CVS:

^\w{3} [ :0-9]{11} [._[:alnum:]-]+ dnsmasq\[[[:digit:]]+\]: reading
(/var/run/dnsmasq/|/etc/)resolv.conf$

(Which matches both paths)

Thanks for your bug report,

-- 
-jamie <jamie at silverdream.org> | spamtrap: spam at silverdream.org
 w: http://www.silverdream.org | p: sms at silverdream.org
 pgp key @ http://silverdream.org/~jps/pub.key
 21:30:02 up 17 min,  2 users,  load average: 2.65, 2.52, 1.58

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.alioth.debian.org/pipermail/logcheck-devel/attachments/20050415/50c7c412/attachment.pgp 


More information about the Logcheck-devel mailing list