From: Marta Carbone Date: Wed, 18 Nov 2009 16:49:57 +0000 (+0000) Subject: Bugfix. X-Git-Tag: vsys-scripts-0.95-12~4 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=2558fd8cd66d80e07cdb1948132634e6803ea432;hp=917d4e3a5f51003b569d67f278d7cb0c05d72f38;p=vsys-scripts.git Bugfix. --- 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} }