]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
don't escape commas when saving named's command line
authorMark Andrews <marka@isc.org>
Fri, 9 Aug 2019 03:02:07 +0000 (13:02 +1000)
committerMark Andrews <marka@isc.org>
Fri, 30 Aug 2019 00:16:33 +0000 (20:16 -0400)
bin/named/main.c
bin/tests/system/resolver/tests.sh

index 7c1c13933b99c357245d6acdd5e444b0030d68ee..09842fd472979a760ff6a27d84e266d792e4b724 100644 (file)
@@ -352,7 +352,7 @@ save_command_line(int argc, char *argv[]) {
                *dst++ = ' ';
 
                while (*src != '\0' && dst < eob) {
-                       if (isalnum(*src) ||
+                       if (isalnum(*src) || *src == ',' ||
                            *src == '-' || *src == '_' ||
                            *src == '.' || *src == '/')
                        {
index 6706e65675c64eafd055fe37b63a9913015ae982..d777ea1ab5d63ab7f95f78aff7fa62478f546440 100755 (executable)
@@ -795,5 +795,12 @@ grep "status: SERVFAIL" 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