Sophie

Sophie

distrib > Mageia > 7 > x86_64 > by-pkgid > 3ba8dfbc4cc457608bbb57e3e79d16b1 > files > 4

nagios-plugins-2.2.1-4.mga7.src.rpm

diff -Naur -x '*.rej' -x '*.orig' -x '*~' nagios-plugins-2.0.3/plugins/check_ping.c nagios-plugins-2.0.3-check_ping-socket-filter-warning/plugins/check_ping.c
--- nagios-plugins-2.0.3/plugins/check_ping.c	2014-05-20 21:15:34.000000000 +0200
+++ nagios-plugins-2.0.3-check_ping-socket-filter-warning/plugins/check_ping.c	2014-08-02 15:08:07.761840896 +0200
@@ -487,6 +487,7 @@
 	while (fgets (buf, MAX_INPUT_BUFFER - 1, child_stderr)) {
 		if (
 			! strstr(buf,"WARNING - no SO_TIMESTAMP support, falling back to SIOCGSTAMP")
+			&& ! strstr(buf,"WARNING: failed to install socket filter: Protocol not available")
 			&& ! strstr(buf,"Warning: time of day goes back")
 
 		) {