diff options
Diffstat (limited to 'include/tests_firewalls')
-rw-r--r-- | include/tests_firewalls | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tests_firewalls b/include/tests_firewalls index 77e554e1..f7c4374e 100644 --- a/include/tests_firewalls +++ b/include/tests_firewalls @@ -115,7 +115,7 @@ TABLES="filter" for TABLE in ${TABLES}; do LogText "Test: gathering information from table ${TABLE}" - FIND="$FIND""\n"$(${IPTABLESBINARY} -t ${TABLE} --numeric --list | ${EGREPBINARY} -z -o -w '[A-Z]+' | ${AWKBINARY} -v t=${TABLE} 'NR%2 {printf "%s %s ",t, $0 ; next;}1') + FIND="$FIND""\n"$(${IPTABLESBINARY} -t ${TABLE} --numeric --list | ${EGREPBINARY} -z -o -w '[A-Z]+' | tr -d '\0' | ${AWKBINARY} -v t=${TABLE} 'NR%2 {printf "%s %s ",t, $0 ; next;}1') done echo "${FIND}" | while read line; do |