don't escape commas when saving named's command line

(cherry picked from commit 70dd93bf8a)
This commit is contained in:
Mark Andrews
2019-08-30 10:44:51 +10:00
parent 5ea8a0c758
commit 79dd970a73
2 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -356,7 +356,7 @@ save_command_line(int argc, char *argv[]) {
* nearly always be fine.
*/
if (quoted || isalnum(*src & 0xff) ||
*src == '-' || *src == '_' ||
*src == ',' || *src == '-' || *src == '_' ||
*src == '.' || *src == '/') {
*dst++ = *src++;
quoted = false;
+7
View File
@@ -779,5 +779,12 @@ grep "1\.2\.3\.4" dig.ns5.out.${n} > /dev/null && ret=1
if [ $ret != 0 ]; then echo_i "failed"; fi
status=`expr $status + $ret`
n=`expr $n + 1`
echo_i "check logged command line ($n)"
ret=0
grep "running as: .* -m record,size,mctx " ns1/named.run > /dev/null || ret=1
if [ $ret != 0 ]; then echo_i "failed"; fi
status=`expr $status + $ret`
echo_i "exit status: $status"
[ $status -eq 0 ] || exit 1