[wifi] capture: fix mktemp for Linux

Add a 3rd character to the random part of the temporary directory, to
satisfy GNU's mktemp.
This commit is contained in:
Matteo Cypriani 2011-08-07 22:00:42 +02:00
parent 9a5853d48a
commit 5fd3e62717
1 changed files with 1 additions and 1 deletions

View File

@ -214,7 +214,7 @@ HOSTNAME=`uname -n`
DATE=`date +%FT%H%M%S`
# Temporary destination directory:
DESTDIR=$(mktemp -d \
"$TMP"/capture_${OS}-${OS_RELEASE}_${IFACE}_${HOSTNAME}_${DATE}_XX)
"$TMP"/capture_${OS}-${OS_RELEASE}_${IFACE}_${HOSTNAME}_${DATE}_XXX)
# Update capture file with full path:
FILE="$DESTDIR/$FILE"