aboutsummaryrefslogtreecommitdiffstats
path: root/cron-sh/security_check.sh
diff options
context:
space:
mode:
authorYoann Vandoorselaere <yoann@mandriva.com>1999-12-19 20:44:31 +0000
committerYoann Vandoorselaere <yoann@mandriva.com>1999-12-19 20:44:31 +0000
commitbca9cc64ca6a283f8e05d233da0d58a9ce6fe6e4 (patch)
treeffda5f7f4f31ffe97a572a86a06e34470697f173 /cron-sh/security_check.sh
parent1e5dec9b01805bf0a7ff620dce6b6baa8d70dd6c (diff)
downloadmsec-bca9cc64ca6a283f8e05d233da0d58a9ce6fe6e4.tar
msec-bca9cc64ca6a283f8e05d233da0d58a9ce6fe6e4.tar.gz
msec-bca9cc64ca6a283f8e05d233da0d58a9ce6fe6e4.tar.bz2
msec-bca9cc64ca6a283f8e05d233da0d58a9ce6fe6e4.tar.xz
msec-bca9cc64ca6a283f8e05d233da0d58a9ce6fe6e4.zip
*** empty log message ***
Diffstat (limited to 'cron-sh/security_check.sh')
-rwxr-xr-xcron-sh/security_check.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/cron-sh/security_check.sh b/cron-sh/security_check.sh
index aafa294..b4842b2 100755
--- a/cron-sh/security_check.sh
+++ b/cron-sh/security_check.sh
@@ -36,7 +36,7 @@ Syslog() {
Ttylog() {
if [[ ${TTY_WARN} == yes ]]; then
for i in `w | grep -v "load\|TTY" | awk '{print $2}'` ; do
- echo -e "${1}" > /dev/$i
+ cat ${1} > /dev/${i}
done
fi
}
@@ -259,6 +259,7 @@ if [[ ${CHECK_OPEN_PORT} == yes ]]; then
fi
fi
+
### Report
if [[ -s ${SECURITY} ]]; then
Syslog ${SECURITY}