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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user