+4384. [bug] Change 4256 accidentally disabled logging of the
+ rndc command. [RT #42654]
+
4383. [bug] Correct spelling error in stats channel description of
"EDNS client subnet option received". [RT #42633]
isc_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL,
NS_LOGMODULE_CONTROL, log_level,
"rejecting restricted control channel "
- "command '%s'", command);
+ "command '%s'", cmdline);
result = ISC_R_FAILURE;
goto cleanup;
}
isc_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL,
NS_LOGMODULE_CONTROL, log_level,
"received control channel command '%s'",
- command);
+ cmdline);
if (command_compare(command, NS_COMMAND_RELOAD)) {
result = ns_server_reloadcommand(ns_g_server, lex, text);
n=`expr $n + 1`
echo "I:test rndc status shows running on ($n)"
ret=0
-$RNDC -s 10.53.0.5 -p 9953 -c ../common/rndc.conf status > rndc.output.test$n /dev/null 2>&1 || ret=1
+$RNDC -s 10.53.0.5 -p 9953 -c ../common/rndc.conf status > rndc.output.test$n 2>&1 || ret=1
grep "^running on " rndc.output.test$n > /dev/null || ret=1
if [ $ret != 0 ]; then echo "I:failed"; fi
status=`expr $status + $ret`
if [ $ret != 0 ]; then echo " I:failed"; fi
status=`expr $status + $ret`
+n=`expr $n + 1`
+echo "I:verify that the full command is logged ($n)"
+ret=0
+$RNDCCMD null with extra arguments > /dev/null 2>&1
+grep "received control channel command 'null with extra arguments'" ns2/named.run > /dev/null || ret=1
+if [ $ret != 0 ]; then echo "I:failed"; fi
+status=`expr $status + $ret`
+
mv ns6/named.conf.save ns6/named.conf
sleep 1
$RNDC -s 10.53.0.6 -p 9953 -c ../common/rndc.conf reconfig > /dev/null || ret=1