Untabify major files and fix 'hits' bug

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@114 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2002-07-05 22:24:40 +00:00
parent ee19fb9ea6
commit e899d2a8ab
2 changed files with 373 additions and 373 deletions

View File

@ -610,7 +610,7 @@ case "$1" in
grep 'Shorewall:.*DPT' $LOGFILE | sed 's/\(.*DPT=\)\([0-9]\{1,5\}\)\(.*\)/\2/' | sort | uniq -c | sort -rn | \
while read count port ; do
# List all services defined for the given port
srv=`grep "\\b$port/" /etc/services | cut -f 1 | sort -u`
srv=`grep "^[^#].*\\b$port/" /etc/services | cut -f 1 | sort -u`
srv=`echo $srv | sed 's/ /,/g'`
if [ -n "$srv" ] ; then