]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
egrep was not precise enough
authorMark Andrews <marka@isc.org>
Sat, 13 Apr 2013 12:34:35 +0000 (22:34 +1000)
committerMark Andrews <marka@isc.org>
Sat, 13 Apr 2013 12:34:35 +0000 (22:34 +1000)
bin/tests/system/rndc/setup.sh

index 94abeb099337676d21918a5f5019153eb9ec207e..a3df13d2625d4fa57217cffb61feb3324488c1d2 100644 (file)
@@ -32,7 +32,7 @@ cat ns4/named.conf.in > ns4/named.conf
 make_key () {
     $RNDCCONFGEN -r random.data -k key$1 -A $2 -s 10.53.0.4 -p 995${1} \
             > ns4/key${1}.conf
-    egrep -v '(Start|End|Use|^[^#])' ns4/key$1.conf | cut -c3- | \
+    egrep -v '(^# Start|^# End|^# Use|^[^#])' ns4/key$1.conf | cut -c3- | \
             sed 's/allow { 10.53.0.4/allow { any/' >> ns4/named.conf
 }