diff --git a/tests/iptables-save-cuts-space-before-j/runtest.sh b/tests/iptables-save-cuts-space-before-j/runtest.sh index a6a5099..2a83bee 100755 --- a/tests/iptables-save-cuts-space-before-j/runtest.sh +++ b/tests/iptables-save-cuts-space-before-j/runtest.sh @@ -40,9 +40,9 @@ rlJournalStart rlPhaseEnd rlPhaseStartTest - RULE="-A INPUT -p dccp -m dccp --dccp-type RESET,INVALID -j LOG" - if rlIsRHEL '>6' || rlIsFedora; then - RULE="${RULE/type/types}" # it is exported under other name + RULE="-A INPUT -p dccp -m dccp --dccp-types RESET,INVALID -j LOG" + if rlIsRHEL '<7'; then + RULE="${RULE/types/type}" # it is exported under other name fi rlLogInfo "using rule '$RULE'" rlRun "iptables $RULE" 0 "add rule for ipv4"