Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormboelen <michael@cisofy.com>2016-01-11 03:30:06 +0300
committermboelen <michael@cisofy.com>2016-01-11 03:30:06 +0300
commit5e5507a1cdd27a481371c2b58ff2b2c40a357668 (patch)
tree10e409e9ff650bbe66b3ba35c5ed280a07f32d05 /include/helper_audit_dockerfile
parente0e56f2cdcfc94b847142bf8d3b68f39ef6d9b50 (diff)
Use CreateTempFile for temporary file creation
Diffstat (limited to 'include/helper_audit_dockerfile')
-rw-r--r--include/helper_audit_dockerfile3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/helper_audit_dockerfile b/include/helper_audit_dockerfile
index 13174e40..31390c25 100644
--- a/include/helper_audit_dockerfile
+++ b/include/helper_audit_dockerfile
@@ -8,7 +8,8 @@ if [ $# -eq 0 ]; then
else
FILE=`echo $1 | egrep "^http|https"`
if [ ! "${FILE}" = "" ] ; then
- TMP_FILE=`mktemp /tmp/audit.XXXXXXXX`
+ CreateTempFile
+ TMP_FILE="${TEMP_FILE}"
Display --indent 2 --text "Downloading URL ${FILE} with wget"
wget -o ${TMP_FILE} ${FILE}
if [ $? -gt 0 ]; then