]> git.pld-linux.org Git - packages/arpwatch.git/blobdiff - arpwatch-debian_22secure_tempfile.patch
- 2.1a15
[packages/arpwatch.git] / arpwatch-debian_22secure_tempfile.patch
index 64f0898624f0582001b9ab775d898e9ab93090d3..7bcc7c3f27a9a4bb8eeba8938c7a2da133a35ae4 100644 (file)
@@ -1,36 +1,19 @@
-Index: arpwatch/arpfetch
-diff -u arpwatch/arpfetch:1.1.1.1 arpwatch/arpfetch:1.1.1.1.18.1
---- arpwatch/arpfetch:1.1.1.1  Tue Apr 17 13:31:36 2001
-+++ arpwatch/arpfetch  Wed Aug 11 21:54:18 2004
-@@ -1,5 +1,4 @@
- #!/bin/sh
--# @(#) $Id$ (LBL)
- #
- # arpfetch - collect arp data from a cisco using snmpwalk
- #
-@@ -10,8 +9,8 @@
- #
- host=$1
- cname=$2
--temp=/tmp/arpfetch.temp.$$
--errs=/tmp/arpfetch.errs.$$
-+temp=`tempfile -p arpft -s .temp.tmp`
-+errs=`tempfile -p arpft -s .errs.tmp`
- what="ip.ipnettomediatable.ipnettomediaentry.ipnettomediaphysaddress"
- #
- # Get the data
 Index: arpwatch/bihourly
 diff -u arpwatch/bihourly:1.1.1.1 arpwatch/bihourly:1.1.1.1.18.1
---- arpwatch/bihourly:1.1.1.1  Tue Apr 17 13:31:36 2001
-+++ arpwatch/bihourly  Wed Aug 11 21:54:18 2004
-@@ -11,6 +11,7 @@
- list=`cat list`
- cname=`cat cname`
- errs=/tmp/bihourly.$$
-+errs=`tempfile -p arpbh -s .tmp`
+--- arpwatch/bihourly.sh:1.1.1.1       Tue Apr 17 13:31:36 2001
++++ arpwatch/bihourly.sh       Wed Aug 11 21:54:18 2004
+@@ -10,8 +10,8 @@
  #
- alist=""
- for r in $list; do \
+ list="`cat list`"
+ cname="`cat cname`"
+-temp1=/tmp/bihourly.1.$$
+-temp2=/tmp/bihourly.2.$$
+-d=/tmp/errs
++temp1=`mktemp`
++temp2=`mktemp`
++d=`mktemp -d`
+ # imperfect hack
 Index: arpwatch/mkdep
 diff -u arpwatch/mkdep:1.1.1.1 arpwatch/mkdep:1.1.1.1.18.1
 --- arpwatch/mkdep:1.1.1.1     Tue Apr 17 13:31:37 2001
@@ -40,7 +23,7 @@ diff -u arpwatch/mkdep:1.1.1.1 arpwatch/mkdep:1.1.1.1.18.1
  fi
  
 -TMP=/tmp/mkdep$$
-+TMP=`tempfile -p mkdep -s .tmp`
++TMP=`mktemp -p mkdep -s .tmp`
  
  trap 'rm -f $TMP ; exit 1' 1 2 3 13 15
  
This page took 0.373176 seconds and 4 git commands to generate.