diff options
author | mboelen <michael@cisofy.com> | 2016-01-11 03:04:38 +0300 |
---|---|---|
committer | mboelen <michael@cisofy.com> | 2016-01-11 03:04:38 +0300 |
commit | e0e56f2cdcfc94b847142bf8d3b68f39ef6d9b50 (patch) | |
tree | 0fbbdb3c69f8be52cff0cea37c5118941c11bbec /include/tests_shells | |
parent | 1cb90916eea687a4f28ec5ccc4f08e0217d7c499 (diff) |
Use CreateTempFile for creation of temporary files
Diffstat (limited to 'include/tests_shells')
-rw-r--r-- | include/tests_shells | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/tests_shells b/include/tests_shells index 024eb972..05c5f25f 100644 --- a/include/tests_shells +++ b/include/tests_shells @@ -285,7 +285,8 @@ if [ ! "${FIND}" = "" ]; then if [ -x "${FIND}" -a ! -L "${FIND}" ]; then LogText "Result: found ${FIND} as a valid shell" - SHELLSHOCK_TMP=`mktemp /tmp/lynis-shellshock-test.XXXXXXXXXX` || exit 1 + CreateTempFile || ExitFatal + SHELLSHOCK_TMP="${TEMP_FILE}" # CVE-2014-6271 LogText "Test: Check for first exploit (CVE-2014-6271)" |