From 6f7d063921bb0220ae5a5d097b165ff7ba2098b3 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Sun, 28 Sep 2014 11:53:52 -0700 Subject: [PATCH] Remove the target file before saving ipsets in the savesets command Signed-off-by: Tom Eastep --- Shorewall/Perl/prog.footer | 1 + 1 file changed, 1 insertion(+) diff --git a/Shorewall/Perl/prog.footer b/Shorewall/Perl/prog.footer index 0c44dd420..8add49a06 100644 --- a/Shorewall/Perl/prog.footer +++ b/Shorewall/Perl/prog.footer @@ -386,6 +386,7 @@ case "$COMMAND" in ;; savesets) if [ $# -eq 2 ]; then + rm -f $2 save_ipsets $2 else usage 2