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