aboutsummaryrefslogtreecommitdiffstats
path: root/cron-sh/scripts
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni@mandriva.org>2010-05-26 14:07:54 +0000
committerEugeni Dodonov <eugeni@mandriva.org>2010-05-26 14:07:54 +0000
commit8ca28c84412a848d906452baefff69129137d6af (patch)
treeac70d746e5ee65959407291ec41f998000f06dde /cron-sh/scripts
parentbe35c8b3c70f0cb32e1daa521e2ee8bf74d112f1 (diff)
downloadmsec-8ca28c84412a848d906452baefff69129137d6af.tar
msec-8ca28c84412a848d906452baefff69129137d6af.tar.gz
msec-8ca28c84412a848d906452baefff69129137d6af.tar.bz2
msec-8ca28c84412a848d906452baefff69129137d6af.tar.xz
msec-8ca28c84412a848d906452baefff69129137d6af.zip
Filter trailing white space
Diffstat (limited to 'cron-sh/scripts')
-rwxr-xr-xcron-sh/scripts/02_network.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/cron-sh/scripts/02_network.sh b/cron-sh/scripts/02_network.sh
index a602e1f..27c60c4 100755
--- a/cron-sh/scripts/02_network.sh
+++ b/cron-sh/scripts/02_network.sh
@@ -30,7 +30,7 @@ if check_is_enabled "${CHECK_OPEN_PORT}" ; then
else
FILTER="cat"
fi
- netstat -pvlA inet,inet6 2> /dev/null | $FILTER > ${OPEN_PORT_TODAY};
+ netstat -pvlA inet,inet6 2> /dev/null | sed -e 's/\s\s*$//g' | $FILTER > ${OPEN_PORT_TODAY};
Filter ${OPEN_PORT_TODAY} CHECK_OPEN_PORT
Count ${INFOS} ${OPEN_PORT_TODAY} "Total of open network ports"
fi