From f175deed204c3d526beb3da964cf6ae91aaf49d1 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Wed, 19 Sep 2018 15:16:57 +0200 Subject: iptables-apply: Quote strings passed to echo Not a real problem here, but covscan got confused by one string containing 'then' keyword. Signed-off-by: Phil Sutter Signed-off-by: Florian Westphal --- iptables/iptables-apply | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'iptables/iptables-apply') diff --git a/iptables/iptables-apply b/iptables/iptables-apply index 86b8d5a2..c7b12d07 100755 --- a/iptables/iptables-apply +++ b/iptables/iptables-apply @@ -143,7 +143,7 @@ if ! "$RESTORE" <"$FILE"; then echo "E: unknown error applying new iptables ruleset." >&2 exit 5 else - echo done. + echo "done." fi echo -n "Can you establish NEW connections to the machine? (y/N) " @@ -152,7 +152,7 @@ read -n1 -t "${TIMEOUT:-15}" ret 2>&1 || : case "${ret:-}" in (y*|Y*) echo - echo ... then my job is done. See you next time. + echo "... then my job is done. See you next time." ;; (*) if [[ -z "${ret:-}" ]]; then @@ -163,7 +163,7 @@ case "${ret:-}" in echo "Timeout. Something happened (or did not). Better play it safe..." echo -n "Reverting to old ruleset... " "$RESTORE" <"$TMPFILE"; - echo done. + echo "done." exit 255 ;; esac -- cgit v1.2.3