From 2558fd8cd66d80e07cdb1948132634e6803ea432 Mon Sep 17 00:00:00 2001 From: Marta Carbone Date: Wed, 18 Nov 2009 16:49:57 +0000 Subject: [PATCH] Bugfix. --- exec/ipfw-be | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exec/ipfw-be b/exec/ipfw-be index 27b4fb8..834b460 100755 --- a/exec/ipfw-be +++ b/exec/ipfw-be @@ -213,7 +213,7 @@ add_rule() { # new_rule slice_id type arg rule pipe_base timeout [ "$TEST" = "1" ] && return # add to the database, at least to adjust the timeout - ( grep -v -- "^${slice_id} ${type} ${arg}" $DBFILE; \ + ( grep -v -- "^${slice_id} ${type} ${arg} " $DBFILE; \ echo "${slice_id} ${type} ${arg} ${rule_base} ${pipe_base} ${timeout}" ) > ${DBFILE}.tmp mv ${DBFILE}.tmp ${DBFILE} } @@ -238,7 +238,7 @@ do_delete() { # slice_id type arg echo "removed configuration $slice_id} ${type} ${arg}" [ "$TEST" = "1" ] && return # remove from the database - grep -v -- "^${slice_id} ${type} ${arg}" $DBFILE > ${DBFILE}.tmp + grep -v -- "^${slice_id} ${type} ${arg} " $DBFILE > ${DBFILE}.tmp mv ${DBFILE}.tmp ${DBFILE} } -- 2.43.0