Hi!
Here are a couple of fixes that we have been running with a while that i
seem to have forgotten to send.

They are all trivial.
The OUserI buffer overflow hit us bad a couple of times.

-- 
Ake Sandgren, HPC2N, Umea University, S-90187 Umea, Sweden
Internet: [EMAIL PROTECTED]   Phone: +46 90 7866134 Fax: +46 90 7866126
Mobile: +46 70 7716134 WWW: http://www.hpc2n.umu.se
diff -ru site/src/moab/MPBSI.c p1/src/moab/MPBSI.c
--- site/src/moab/MPBSI.c	2006-09-21 12:45:30.000000000 +0200
+++ p1/src/moab/MPBSI.c	2006-09-21 12:47:07.000000000 +0200
@@ -768,7 +768,7 @@
           if (MJobFind(SJID,&J,0) == SUCCESS)
             {
             if (IsExiting == TRUE)
-              IsExiting |= (1 << mjfIsExiting);
+              J->Flags |= (1 << mjfIsExiting);
 
             MRMJobPreUpdate(J);
   
@@ -781,7 +781,7 @@
             /* if new job, load data */
 
             if (IsExiting == TRUE)
-              IsExiting |= (1 << mjfIsExiting);
+              J->Flags |= (1 << mjfIsExiting);
 
             MRMJobPreLoad(J,SJID,R->Index);
 
@@ -817,7 +817,7 @@
           if (MJobFind(SJID,&J,0) == SUCCESS)
             {
             if (IsExiting == TRUE)
-              IsExiting |= (1 << mjfIsExiting);
+              J->Flags |= (1 << mjfIsExiting);
 
             /* if job never ran, remove record.  job cancelled externally */
   
diff -ru site/src/moab/MConfig.c p1/src/moab/MConfig.c
--- site/src/moab/MConfig.c	2006-09-06 18:40:39.000000000 +0200
+++ p1/src/moab/MConfig.c	2006-09-21 12:49:32.000000000 +0200
@@ -1671,6 +1671,7 @@
     case mcoJobFBAction:
     case mcoMailAction:
     case pAdminEAction:
+    case pAdminEInterval:
     case pCheckPointFile:
     case pCheckPointInterval:
     case pCheckPointExpirationTime:
diff -ru site/src/server/OUserI.c p1/src/server/OUserI.c
--- site/src/server/OUserI.c	2006-09-21 12:45:30.000000000 +0200
+++ p1/src/server/OUserI.c	2006-09-21 12:52:51.000000000 +0200
@@ -437,6 +437,7 @@
         MCKeyword[mckArgs]);
 
       HeadSize = (int)strlen(SBuffer);
+      S->SBufSize -= HeadSize + 1;
 
       if (Function[sindex] != NULL)
         scode = (*Function[sindex])(args,S->SBuffer + HeadSize,FLAGS,Auth,&S->SBufSize);
@@ -447,10 +448,7 @@
 
       *ptr = scode + '0';
 
-      if (S->SBufSize != sizeof(SBuffer))
-        S->SBufSize += (long)HeadSize;
-      else
-        S->SBufSize = (long)strlen(S->SBuffer);
+      S->SBufSize = (long)strlen(S->SBuffer);
 
       MSUSendData(S,MAX_SOCKETWAIT,TRUE,TRUE);
 
diff -ru site/src/server/Makefile p1/src/server/Makefile
--- site/src/server/Makefile	2006-09-21 08:40:20.000000000 +0200
+++ p1/src/server/Makefile	2006-09-21 12:54:21.000000000 +0200
@@ -112,3 +112,5 @@
 	rm $(INST_DIR)/bin/mprof
 	rm $(INST_DIR)/sbin/maui
 	rm $(INST_DIR)/include/moab.h
+
+UserI.o:	OUserI.c
_______________________________________________
mauiusers mailing list
[email protected]
http://www.supercluster.org/mailman/listinfo/mauiusers

Reply via email to