aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorJörg Mayer <jmayer@loplof.de>2006-02-03 09:29:54 +0000
committerJörg Mayer <jmayer@loplof.de>2006-02-03 09:29:54 +0000
commita5c03f490e48493f84e854336cd5e89a4fe5ca2c (patch)
treeef8f196711f13ea361f9dad9ecc9e4b193c7309e /tools
parente9b933473e8f0adad33c3b72ab09e917029c8e36 (diff)
Mike Duigou:
I noticed that when you run fuzz testing from both a root account and a user account you can run into problems because the user account tries to use and delete temp files created by the root account and fails. This patch uses the same scheme as used for fuzz error files for naming the tampered file and for the error file to prevent filename/permission collisions between temp files from different runs. svn path=/trunk/; revision=17145
Diffstat (limited to 'tools')
-rwxr-xr-xtools/fuzz-test.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/fuzz-test.sh b/tools/fuzz-test.sh
index 39253aa781..c1a5ddb078 100755
--- a/tools/fuzz-test.sh
+++ b/tools/fuzz-test.sh
@@ -20,8 +20,8 @@ DATE=/bin/date
# Temporary file directory and names.
# (had problems with this on cygwin, tried TMP_DIR=./ which worked)
TMP_DIR=/tmp
-TMP_FILE=fuzz-test.pcap
-ERR_FILE=fuzz-err.txt
+TMP_FILE=fuzz-test-`$DATE +%Y-%m-%d`-$$.pcap
+ERR_FILE=fuzz-err-`$DATE +%Y-%m-%d`-$$.txt
# These may be set to your liking
# Stop the child process, if it's running longer than x seconds