Просмотр исходного кода

debug output missing command name

Fix for issue https://github.com/NagiosEnterprises/nrpe/issues/53
John C. Frickson 9 лет назад
Родитель
Сommit
2169e49c55
2 измененных файлов с 3 добавлено и 1 удалено
  1. 2 0
      Changelog
  2. 1 1
      src/nrpe.c

+ 2 - 0
Changelog

@@ -8,6 +8,8 @@ FIXES
 - _set_rc: command not found reported by init script (John Frickson)
 - Version string contains name (John Frickson)
 - Changes to get 'rpmbuild' to work - nrpe.spec file outdated (John Frickson)
+- typo in startup/default-xinetd.in (Philippe Kueck)
+- debug output missing command name (Philippe Kueck)
 
 
 3.0 - 2016-08-01

+ 1 - 1
src/nrpe.c

@@ -1546,7 +1546,7 @@ void handle_connection(int sock)
 	/* log info to syslog facility */
 	if (debug == TRUE)
 		syslog(LOG_DEBUG, "Host %s is asking for command '%s' to be run...",
-			   remote_host, receive_packet.buffer);
+			   remote_host, command_name);
 
 	/* if this is the version check command, just spew it out */
 	if (!strcmp(command_name, NRPE_HELLO_COMMAND)) {