1
0
mirror of https://github.com/CISOfy/lynis.git synced 2025-04-08 17:15:25 +02:00

Mac OS improvement for test NETW-3012

This commit is contained in:
mboelen 2014-09-21 13:01:29 +02:00
parent 116b1eab97
commit 911a5e88f6

@ -292,10 +292,12 @@
MacOS)
if [ ! "${LSOFBINARY}" = "" ]; then
# UDP and TCP combined
FIND=`${LSOFBINARY} -i -P | awk '{ print $9"|"$8"|"$1"|" }' | sed 's/\(.*\)\-\>.*\(\|.*\)/\1\2/' | sed 's/\*/'$IP'/' | sort -u | grep -v "NAME"`
else
FIND=""
fi
# Not needed as we have a combined test
FIND2=""
;;