Merge pull request #23330 from edsantiago/backport-nc-fix

[v5.2] nc -p considered harmful
This commit is contained in:
openshift-merge-bot[bot] 2024-07-18 18:15:56 +00:00 • committed by GitHub
commit a3d496ae1f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -760,7 +760,7 @@ nameserver 8.8.8.8" "nameserver order is correct"
cid="$output"
# make sure binding the same port fails
run timeout 5 nc -l -p $port 127.0.0.1
run timeout 5 nc -l 127.0.0.1 $port
assert "$status" -eq 2 "ncat unexpected exit code"
assert "$output" =~ "127.0.0.1:$port: Address already in use" "ncat error message"