diff options
author | Phil Sutter <phil@nwl.cc> | 2018-09-19 15:16:57 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2018-09-24 11:24:11 +0200 |
commit | f175deed204c3d526beb3da964cf6ae91aaf49d1 (patch) | |
tree | 848e624ee66a8a43270f15fe295d4373d6bb99ba | |
parent | 52aa15098ebd62eaca9eb3c57c240df2455d8e9b (diff) |
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 <phil@nwl.cc>
Signed-off-by: Florian Westphal <fw@strlen.de>
-rwxr-xr-x | iptables/iptables-apply | 6 |
1 files changed, 3 insertions, 3 deletions
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 |