Module Name:    src
Committed By:   christos
Date:           Thu Jun 13 20:53:33 UTC 2019

Modified Files:
        src/usr.sbin/postinstall: postinstall

Log Message:
Anchor the egrep search to avoid npf.conf matching pf.conf, but don't
anchor $ so that blacklistd machines blackist.


To generate a diff of this commit:
cvs rdiff -u -r1.230 -r1.231 src/usr.sbin/postinstall/postinstall

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/postinstall/postinstall
diff -u src/usr.sbin/postinstall/postinstall:1.230 src/usr.sbin/postinstall/postinstall:1.231
--- src/usr.sbin/postinstall/postinstall:1.230	Thu Jun 13 15:30:30 2019
+++ src/usr.sbin/postinstall/postinstall	Thu Jun 13 16:53:33 2019
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: postinstall,v 1.230 2019/06/13 19:30:30 christos Exp $
+# $NetBSD: postinstall,v 1.231 2019/06/13 20:53:33 christos Exp $
 #
 # Copyright (c) 2002-2015 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -1423,7 +1423,7 @@ exclude()
 	if [ -z "$*" ]; then
 		cat
 	else
-		eval ${GREP} -v -E "'($(echo $* | sed -e 's/ /|/'g))'"
+		eval ${GREP} -v -E "'(^$(echo $* | sed -e 's/ /|^/'g))'"
 	fi
 }
 

Reply via email to