SHA256
1
0
forked from pool/iptables

- iptables-apply-mktemp-fix.patch (bnc#730161)

OBS-URL: https://build.opensuse.org/package/show/security:netfilter/iptables?expand=0&rev=38
This commit is contained in:
2011-12-28 10:12:23 +00:00
committed by Git OBS Bridge
parent b70a3a249e
commit bc609749a2
3 changed files with 31 additions and 2 deletions

View File

@@ -0,0 +1,22 @@
Index: iptables-1.4.12.1+16/iptables/iptables-apply
===================================================================
--- iptables-1.4.12.1+16.orig/iptables/iptables-apply
+++ iptables-1.4.12.1+16/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 1 2 3 4 5 6 7 8 10 11 12 13 14 15
if ! "$SAVE" >"$TMPFILE"; then