1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

Prevent unintentional filename expansion

This commit is contained in:
nnposter
2024-08-24 21:38:13 +00:00
parent 5d7012bab6
commit a1ba7b7672

View File

@@ -36,8 +36,8 @@ test_addrset() {
# Takes as an argument a host specification with invalid syntax. The
# test passes if addrset returns with a non-zero exit code.
expect_fail() {
specs=$1
$ADDRSET $specs < /dev/null 2> /dev/null
specs="$1"
$ADDRSET "$specs" < /dev/null 2> /dev/null
ret=$?
TESTS=$(expr $TESTS + 1)
if [ "$ret" = "0" ]; then