Pārlūkot izejas kodu

chore/fix: whitespace fix, added changelog entry

Griffin Westerman 1 gadu atpakaļ
vecāks
revīzija
ac5708609b
2 mainītis faili ar 5 papildinājumiem un 1 dzēšanām
  1. 4 0
      NEWS
  2. 1 1
      plugins/check_dig.c

+ 4 - 0
NEWS

@@ -1,5 +1,9 @@
 This file documents the major additions and syntax changes between releases.
 
+2.4.10 2024-XX-XX
+	FIXES
+	check_dig: Fixed issue where exact matching broke backwards compatability, and added new option to enforce exact matching (#777)
+
 2.4.9 2024-03-21
 	FIXES
 	check_snmp: Robustly fixes incorrect integer return value parsing (#749)

+ 1 - 1
plugins/check_dig.c

@@ -151,7 +151,7 @@ main (int argc, char **argv)
         }
 
         t = tt; /* consider the right-side token, does it match ex? */
-        if ( (!exact && strcasestr( t, ex)) || ((strcasestr( t, ex ) == t) && (strlen( t ) == strlen( ex ))) ) {
+        if ( (!exact && strcasestr( t, ex )) || ((strcasestr( t, ex ) == t) && (strlen( t ) == strlen( ex ))) ) {
           result = STATE_OK;
           msg = chld_out.line[i];
           break;