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.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17145
f5534014-38df-0310-8fa8-
9805f1628bb7
# 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