2018-10-23 16:33:49 +02:00
|
|
|
---
|
|
|
|
iptables/iptables-apply | 4 ++--
|
|
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
|
|
|
|
Index: iptables-1.8.1/iptables/iptables-apply
|
2011-12-28 11:12:23 +01:00
|
|
|
===================================================================
|
2018-10-23 16:33:49 +02:00
|
|
|
--- iptables-1.8.1.orig/iptables/iptables-apply
|
|
|
|
+++ iptables-1.8.1/iptables/iptables-apply
|
2011-12-28 11:12:23 +01:00
|
|
|
@@ -111,7 +111,7 @@ if [[ ! -r "$FILE" ]]; then
|
|
|
|
exit 2
|
|
|
|
fi
|
|
|
|
|
|
|
|
-COMMANDS=(tempfile "$SAVE" "$RESTORE")
|
|
|
|
+COMMANDS=(mktemp "$SAVE" "$RESTORE")
|
|
|
|
|
|
|
|
for cmd in "${COMMANDS[@]}"; do
|
|
|
|
if ! command -v $cmd >/dev/null; then
|
|
|
|
@@ -122,7 +122,7 @@ done
|
|
|
|
|
|
|
|
umask 0700
|
|
|
|
|
|
|
|
-TMPFILE=$(tempfile -p iptap)
|
|
|
|
+TMPFILE=$(mktemp)
|
2018-10-23 16:33:49 +02:00
|
|
|
trap "rm -f $TMPFILE" EXIT HUP INT QUIT ILL TRAP ABRT BUS \
|
|
|
|
FPE USR1 SEGV USR2 PIPE ALRM TERM
|
2011-12-28 11:12:23 +01:00
|
|
|
|