diff options
-rw-r--r-- | ChangeLog | 3 | ||||
-rwxr-xr-x | cron-sh/security_check.sh | 6 |
2 files changed, 5 insertions, 4 deletions
@@ -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() { |