From b686594b976ddbfb1809ecfe016784bb53bbe9ac Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Wed, 19 Sep 2018 15:16:58 +0200 Subject: iptables-apply: Replace signal numbers by names As covscan stated: "Trapping signals by number is not well defined. Prefer signal names." Signed-off-by: Phil Sutter Signed-off-by: Florian Westphal --- iptables/iptables-apply | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/iptables/iptables-apply b/iptables/iptables-apply index c7b12d07..819ca4a4 100755 --- a/iptables/iptables-apply +++ b/iptables/iptables-apply @@ -123,7 +123,8 @@ done umask 0700 TMPFILE=$(tempfile -p iptap) -trap "rm -f $TMPFILE" EXIT 1 2 3 4 5 6 7 8 10 11 12 13 14 15 +trap "rm -f $TMPFILE" EXIT HUP INT QUIT ILL TRAP ABRT BUS \ + FPE USR1 SEGV USR2 PIPE ALRM TERM if ! "$SAVE" >"$TMPFILE"; then if ! grep -q ipt /proc/modules 2>/dev/null; then -- cgit v1.2.3