Blame SOURCES/ntp-4.2.6p5-monwarn.patch

2b78f7
diff -up ntp-4.2.6p5/ntpd/ntp_proto.c.monwarn ntp-4.2.6p5/ntpd/ntp_proto.c
2b78f7
--- ntp-4.2.6p5/ntpd/ntp_proto.c.monwarn	2014-07-03 18:03:37.985020147 +0200
2b78f7
+++ ntp-4.2.6p5/ntpd/ntp_proto.c	2014-07-03 18:06:08.656380757 +0200
2b78f7
@@ -3701,8 +3701,12 @@ proto_config(
2b78f7
 	case PROTO_MONITOR:	/* monitoring (monitor) */
2b78f7
 		if (value)
2b78f7
 			mon_start(MON_ON);
2b78f7
-		else
2b78f7
+		else {
2b78f7
 			mon_stop(MON_ON);
2b78f7
+			if (mon_enabled)
2b78f7
+				msyslog(LOG_WARNING,
2b78f7
+					"monitor cannot be disabled with limited restrict");
2b78f7
+		}
2b78f7
 		break;
2b78f7
 
2b78f7
 	case PROTO_NTP:		/* NTP discipline (ntp) */