[Nagios-devel] [PATCH] Fall-through bugs in base/commands.c

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

[Nagios-devel] [PATCH] Fall-through bugs in base/commands.c

Post by Guest »

Folks,

I've just discovered two minor (but annoying) bugs in commands.c: there are
two break statements missing, making CMD_ENABLE_ALL_NOTIFICATIONS_BEYOND_HOST
fail. Here's a pathetic little patch for the problem (against the latest code
in CVS):


diff -U3 -r nagios-orig/base/commands.c nagios/base/commands.c
--- nagios-orig/base/commands.c 2008-11-02 20:51:29.000000000 +0200
+++ nagios/base/commands.c 2008-11-15 16:24:57.000000000 +0200
@@ -1186,9 +1186,11 @@

case CMD_ENABLE_ALL_NOTIFICATIONS_BEYOND_HOST:

enable_and_propagate_notifications(temp_host,0,FALSE,TRUE,TRUE);
+ break;

case CMD_DISABLE_ALL_NOTIFICATIONS_BEYOND_HOST:

disable_and_propagate_notifications(temp_host,0,FALSE,TRUE,TRUE);
+ break;

case CMD_ENABLE_HOST_SVC_NOTIFICATIONS:
case CMD_DISABLE_HOST_SVC_NOTIFICATIONS:



Many thanks,
Alexios.


--
Alexios Chouchoulas
Ark Computing (www.arkcomputing.com)






This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked