[v9_9] allow spaces in rndc arguments
4256. [bug] Allow rndc command arguments to be quoted so as to allow spaces. [RT #36665] (cherry picked from commitb513918481) (cherry picked from commitd1ce32ad70)
This commit is contained in:
@@ -275,6 +275,13 @@ grep "query: foo9876.bind CH TXT" ns3/named.run > /dev/null && ret=1
|
||||
if [ $ret != 0 ]; then echo "I:failed"; fi
|
||||
status=`expr $status + $ret`
|
||||
|
||||
echo "I:testing rndc with a token containing a space"
|
||||
ret=0
|
||||
$RNDC -s 10.53.0.4 -p 9953 -c ../common/rndc.conf flush '"view with a space"' 2>&1 > rndc.output || ret=1
|
||||
grep "not found" rndc.output > /dev/null && ret=1
|
||||
if [ $ret != 0 ]; then echo "I:failed"; fi
|
||||
status=`expr $status + $ret`
|
||||
|
||||
echo "I:test 'rndc reconfig' with a broken config"
|
||||
ret=0
|
||||
$RNDC -s 10.53.0.3 -p 9953 -c ../common/rndc.conf reconfig > /dev/null || ret=1
|
||||
|
||||
Reference in New Issue
Block a user