[Mauiusers] maui-3.2.6p19 patch showstate crashes with Generic Consumable Floating Resources Configured

Jeffrey B. Reed jeff.reed at intrinsity.com
Wed Jul 11 07:52:11 MDT 2007


The enclosed patch addresses the following issue:

maui crashes when you have Generic Consumable Floating Resources configured and execute showstate.

We hope you consider applying this patch to your next release.

Thanks,

Jeff
-------------- next part --------------
--- maui-3.2.6p19.orig/src/server/UserI.c	2007-03-28 15:05:40.000000000 -0500
+++ maui-3.2.6p19/src/server/UserI.c	2007-07-02 15:32:04.000000000 -0500
@@ -4097,12 +4097,11 @@
   for (findex = 0;findex < MAX_MFRAME;findex++)
     {
     F = &MFrame[findex];
+    if ( (!F) || (F->Name[0] == '\0') || (F->NodeCount <= 0)) continue;
 
     DBG(5,fUI) DPrint("INFO:     collecting status for frame %s\n",
       F->Name); 
 
-    if (F->NodeCount <= 0)
-      continue;
 
     switch(DisplayMode)
       {
@@ -4147,6 +4146,9 @@
     if (N->Name[0] == '\1')
       continue;
 
+    if (!strcmp(N->Name,"GLOBAL")) continue;
+
+    DBG(5,fUI) DPrint("INFO: checking node %s\n", N->Name);
     /* display failure information */
 
     if ((N->CRes.Disk > 0) && (N->ARes.Disk <= 0))



More information about the mauiusers mailing list