aboutsummaryrefslogtreecommitdiffstats
path: root/cron-sh
diff options
context:
space:
mode:
Diffstat (limited to 'cron-sh')
-rwxr-xr-xcron-sh/diff_check.sh2
-rwxr-xr-xcron-sh/security_check.sh4
2 files changed, 3 insertions, 3 deletions
diff --git a/cron-sh/diff_check.sh b/cron-sh/diff_check.sh
index 62d52e8..6c22184 100755
--- a/cron-sh/diff_check.sh
+++ b/cron-sh/diff_check.sh
@@ -43,7 +43,7 @@ UNOWNED_YESTERDAY="/var/log/security/unowned.yesterday"
UNOWNED_DIFF="/var/log/security/unowned.diff"
SECURITY_LOG="/var/log/security.log"
-TMP="/tmp/secure.tmp"
+TMP=`mktemp /tmp/secure.XXXXXX`
if [[ ! -d /var/log/security ]]; then
mkdir /var/log/security
diff --git a/cron-sh/security_check.sh b/cron-sh/security_check.sh
index 800b0c0..6f73f72 100755
--- a/cron-sh/security_check.sh
+++ b/cron-sh/security_check.sh
@@ -15,9 +15,9 @@ if [[ ${CHECK_SECURITY} != yes ]]; then
exit 0
fi
-SECURITY="/tmp/secure.log"
+SECURITY=`mktemp /tmp/secure.log`
SECURITY_LOG="/var/log/security.log"
-TMP="/tmp/secure.tmp"
+TMP=`mktemp /tmp/secure.tmp`
if [[ ! -d /var/log/security ]]; then
mkdir /var/log/security