From 5fd3e627177c43583c160faf5d3f41efd298c2a4 Mon Sep 17 00:00:00 2001 From: Matteo Cypriani Date: Sun, 7 Aug 2011 22:00:42 +0200 Subject: [PATCH] [wifi] capture: fix mktemp for Linux Add a 3rd character to the random part of the temporary directory, to satisfy GNU's mktemp. --- wifi/capture.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wifi/capture.sh b/wifi/capture.sh index 9aa45b5..ee8fb92 100755 --- a/wifi/capture.sh +++ b/wifi/capture.sh @@ -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"