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:04:38 +0300
committermboelen <michael@cisofy.com>2016-01-11 03:04:38 +0300
commite0e56f2cdcfc94b847142bf8d3b68f39ef6d9b50 (patch)
tree0fbbdb3c69f8be52cff0cea37c5118941c11bbec /include/tests_shells
parent1cb90916eea687a4f28ec5ccc4f08e0217d7c499 (diff)
Use CreateTempFile for creation of temporary files
Diffstat (limited to 'include/tests_shells')
-rw-r--r--include/tests_shells3
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)"