]> git.pld-linux.org Git - packages/arpwatch.git/blame - arpwatch-debian_22secure_tempfile.patch
- patches from Debian
[packages/arpwatch.git] / arpwatch-debian_22secure_tempfile.patch
CommitLineData
e2fb63d0
TP
1Index: arpwatch/arpfetch
2diff -u arpwatch/arpfetch:1.1.1.1 arpwatch/arpfetch:1.1.1.1.18.1
3--- arpwatch/arpfetch:1.1.1.1 Tue Apr 17 13:31:36 2001
4+++ arpwatch/arpfetch Wed Aug 11 21:54:18 2004
5@@ -1,5 +1,4 @@
6 #!/bin/sh
7-# @(#) $Id$ (LBL)
8 #
9 # arpfetch - collect arp data from a cisco using snmpwalk
10 #
11@@ -10,8 +9,8 @@
12 #
13 host=$1
14 cname=$2
15-temp=/tmp/arpfetch.temp.$$
16-errs=/tmp/arpfetch.errs.$$
17+temp=`tempfile -p arpft -s .temp.tmp`
18+errs=`tempfile -p arpft -s .errs.tmp`
19 what="ip.ipnettomediatable.ipnettomediaentry.ipnettomediaphysaddress"
20 #
21 # Get the data
22Index: arpwatch/bihourly
23diff -u arpwatch/bihourly:1.1.1.1 arpwatch/bihourly:1.1.1.1.18.1
24--- arpwatch/bihourly:1.1.1.1 Tue Apr 17 13:31:36 2001
25+++ arpwatch/bihourly Wed Aug 11 21:54:18 2004
26@@ -11,6 +11,7 @@
27 list=`cat list`
28 cname=`cat cname`
29 errs=/tmp/bihourly.$$
30+errs=`tempfile -p arpbh -s .tmp`
31 #
32 alist=""
33 for r in $list; do \
34Index: arpwatch/mkdep
35diff -u arpwatch/mkdep:1.1.1.1 arpwatch/mkdep:1.1.1.1.18.1
36--- arpwatch/mkdep:1.1.1.1 Tue Apr 17 13:31:37 2001
37+++ arpwatch/mkdep Wed Aug 11 21:54:18 2004
38@@ -51,7 +51,7 @@
39 exit 1
40 fi
41
42-TMP=/tmp/mkdep$$
43+TMP=`tempfile -p mkdep -s .tmp`
44
45 trap 'rm -f $TMP ; exit 1' 1 2 3 13 15
46
This page took 0.055162 seconds and 4 git commands to generate.