[iptables PATCH 16/28] iptables-apply: Quote strings passed to echo

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Not a real problem here, but covscan got confused by one string
containing 'then' keyword.

Signed-off-by: Phil Sutter <phil@xxxxxx>
---
 iptables/iptables-apply | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/iptables/iptables-apply b/iptables/iptables-apply
index 86b8d5a2ffcc9..c7b12d07e584b 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
-- 
2.18.0




[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux