aboutsummaryrefslogtreecommitdiffstats
path: root/cron-sh
diff options
context:
space:
mode:
authorYoann Vandoorselaere <yoann@mandriva.com>1999-12-16 16:21:28 +0000
committerYoann Vandoorselaere <yoann@mandriva.com>1999-12-16 16:21:28 +0000
commit5a2662e03d6d2206105e7c87343c17ac9d1f28b1 (patch)
tree6b54746bcc663259417d8e200d766950e036f18a /cron-sh
parent5e3ce5426b211ff83c92f561fc940bee3b0877ce (diff)
downloadmsec-5a2662e03d6d2206105e7c87343c17ac9d1f28b1.tar
msec-5a2662e03d6d2206105e7c87343c17ac9d1f28b1.tar.gz
msec-5a2662e03d6d2206105e7c87343c17ac9d1f28b1.tar.bz2
msec-5a2662e03d6d2206105e7c87343c17ac9d1f28b1.tar.xz
msec-5a2662e03d6d2206105e7c87343c17ac9d1f28b1.zip
*** empty log message ***
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