Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/postinstall Anchor the egrep search to avoid npf.co...



details:   https://anonhg.NetBSD.org/src/rev/7b7bc4fb2464
branches:  trunk
changeset: 457171:7b7bc4fb2464
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Jun 13 20:53:33 2019 +0000

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

diffstat:

 usr.sbin/postinstall/postinstall |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (20 lines):

diff -r fd7650959cae -r 7b7bc4fb2464 usr.sbin/postinstall/postinstall
--- a/usr.sbin/postinstall/postinstall  Thu Jun 13 20:26:06 2019 +0000
+++ b/usr.sbin/postinstall/postinstall  Thu Jun 13 20:53:33 2019 +0000
@@ -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 @@
        if [ -z "$*" ]; then
                cat
        else
-               eval ${GREP} -v -E "'($(echo $* | sed -e 's/ /|/'g))'"
+               eval ${GREP} -v -E "'(^$(echo $* | sed -e 's/ /|^/'g))'"
        fi
 }
 



Home | Main Index | Thread Index | Old Index