forked from jengelh/iptables
Jan Engelhardt
521cf520ff
OBS-URL: https://build.opensuse.org/package/show/security:netfilter/iptables?expand=0&rev=121
27 lines
708 B
Diff
27 lines
708 B
Diff
---
|
|
iptables/iptables-apply | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
Index: iptables-1.8.1/iptables/iptables-apply
|
|
===================================================================
|
|
--- iptables-1.8.1.orig/iptables/iptables-apply
|
|
+++ iptables-1.8.1/iptables/iptables-apply
|
|
@@ -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)
|
|
trap "rm -f $TMPFILE" EXIT HUP INT QUIT ILL TRAP ABRT BUS \
|
|
FPE USR1 SEGV USR2 PIPE ALRM TERM
|
|
|