aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rwxr-xr-xcron-sh/security_check.sh6
2 files changed, 5 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index b33063d..a5e9d20 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+1999-12-17 Yoann Vandoorselaere <yoann@mandrakesoft.com>
+ * security_check.sh: fix the mktemp problem
+
1999-12-16 Yoann Vandoorselaere <yoann@mandrakesoft.com>
* Don't use msec parsing routine to hack inittab.
* Indentation problem should be corrected
diff --git a/cron-sh/security_check.sh b/cron-sh/security_check.sh
index 6f73f72..87c7043 100755
--- a/cron-sh/security_check.sh
+++ b/cron-sh/security_check.sh
@@ -15,16 +15,14 @@ if [[ ${CHECK_SECURITY} != yes ]]; then
exit 0
fi
-SECURITY=`mktemp /tmp/secure.log`
+SECURITY=`mktemp /tmp/secure.XXXXXX`
SECURITY_LOG="/var/log/security.log"
-TMP=`mktemp /tmp/secure.tmp`
+TMP=`mktemp /tmp/secure.XXXXXX`
if [[ ! -d /var/log/security ]]; then
mkdir /var/log/security
fi
-rm -f ${SECURITY} ${TMP} >& /dev/null
-
### Functions ###
Syslog() {