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/97d5736b5003
branches:  trunk
changeset: 451988:97d5736b5003
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 bb15abd6d7b3 -r 97d5736b5003 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