[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:
parent
9a5853d48a
commit
5fd3e62717
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in New Issue