This patch causes mon to catch bogus entries in a period section.  It
also allows and basically ignores an old "comp_alerts" entry.

diff -r -X /home/roderick/.diff-exclude -u base.1/mon mon/mon
--- base.1/mon  Fri Sep 14 08:09:11 2001
+++ mon/mon     Thu Sep 13 20:20:30 2001
@@ -1369,6 +1369,21 @@
                    $pref->{"no_comp_alerts"} = 1;
                    next;
                }
+
+               #
+               # for backwards-compatibility with <= 0.38.21
+               #
+               elsif ($var eq "comp_alerts")
+               {
+                   $pref->{"no_comp_alerts"} = 0;
+                   next;
+               }
+
+               else
+               {
+                   close (CFG);
+                   return "cf error: unknown syntax in period section [$l], line 
+$line_num";
+               }
            }
 
            #

-- 
Roderick Schertler
[EMAIL PROTECTED]

Reply via email to