Made showgrid's, and other's, arguments case-insensitive. (David Chin)
git-svn-id: svn://opensvn.adaptivecomputing.com/maui/trunk@135 3f5042e3-fb1d-0410-be18-d6ca2573e517
This commit is contained in:
parent
06a80120b0
commit
2547abcf21
@ -1,6 +1,7 @@
|
||||
Maui 3.3.1
|
||||
- Fixed issue where hostlist was being overwritten resulting in broken $PBS_NODEFILE. (Alexis Cousein)
|
||||
- Fixed issue where users could set system priority on their own jobs. (Bas van der Vlies)
|
||||
- Made showgrid's, and other's, arguments case-insensitive. (David Chin)
|
||||
|
||||
Maui 3.3
|
||||
- Fixed configure script. Was putting RMCFG[name] TYPE=PBS@RMNMHOST@.
|
||||
|
@ -57,15 +57,15 @@ int ServerSetSignalHandlers()
|
||||
{
|
||||
act.sa_handler = (void(*)(int))SIG_DFL;
|
||||
}
|
||||
else if (!strcmp(ptr,"TRAP") || !strcmp(ptr,"trap"))
|
||||
else if (!strcasecmp(ptr,"trap"))
|
||||
{
|
||||
act.sa_handler = (void(*)(int))CrashMode;
|
||||
}
|
||||
else if (!strcmp(ptr,"IGNORE") || !strcmp(ptr,"ignore"))
|
||||
else if (!strcasecmp(ptr,"ignore"))
|
||||
{
|
||||
act.sa_handler = (void(*)(int))SIG_IGN;
|
||||
}
|
||||
else if (!strcmp(ptr,"DIE") || !strcmp(ptr,"die"))
|
||||
else if (!strcasecmp(ptr,"die"))
|
||||
{
|
||||
act.sa_handler = (void(*)(int))SIG_DFL;
|
||||
}
|
||||
@ -93,15 +93,15 @@ int ServerSetSignalHandlers()
|
||||
{
|
||||
act.sa_handler = (void(*)(int))SIG_DFL;
|
||||
}
|
||||
else if (!strcmp(ptr,"TRAP") || !strcmp(ptr,"trap"))
|
||||
else if (!strcasecmp(ptr,"trap"))
|
||||
{
|
||||
act.sa_handler = (void(*)(int))CrashMode;
|
||||
}
|
||||
else if (!strcmp(ptr,"IGNORE") || !strcmp(ptr,"ignore"))
|
||||
else if (!strcasecmp(ptr,"ignore"))
|
||||
{
|
||||
act.sa_handler = (void(*)(int))SIG_IGN;
|
||||
}
|
||||
else if (!strcmp(ptr,"DIE") || !strcmp(ptr,"die"))
|
||||
else if (!strcasecmp(ptr,"die"))
|
||||
{
|
||||
act.sa_handler = (void(*)(int))SIG_DFL;
|
||||
}
|
||||
|
@ -291,14 +291,14 @@ int UIProcessCommand(
|
||||
if (MSched.AdminHost[index][0] == '\0')
|
||||
break;
|
||||
|
||||
if (!strcmp(MSched.AdminHost[index],S->Host))
|
||||
if (!strcasecmp(MSched.AdminHost[index],S->Host))
|
||||
{
|
||||
hostcheck = TRUE;
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
if (!strcmp(MSched.AdminHost[index],"ALL"))
|
||||
if (!strcasecmp(MSched.AdminHost[index],"ALL"))
|
||||
{
|
||||
hostcheck = TRUE;
|
||||
|
||||
@ -565,7 +565,7 @@ int SetJobUserPrio(
|
||||
|
||||
if (!(FLAGS & ((1 << fAdmin1) | (1 << fAdmin2))))
|
||||
{
|
||||
if (strcmp(J->Cred.U->Name,Auth) != 0)
|
||||
if (strcasecmp(J->Cred.U->Name,Auth) != 0)
|
||||
{
|
||||
DBG(2,fUI) DPrint("INFO: user %s is not authorized to set user priority on job %s\n",
|
||||
Auth,
|
||||
@ -618,7 +618,7 @@ int UIShowGrid(
|
||||
|
||||
for (sindex = 0;MStatType[sindex] != 0;sindex++)
|
||||
{
|
||||
if (!strcmp(MStatType[sindex],GStat))
|
||||
if (!strcasecmp(MStatType[sindex],GStat))
|
||||
break;
|
||||
} /* END for (sindex) */
|
||||
|
||||
@ -777,7 +777,7 @@ int ShowBackfillWindow(
|
||||
{
|
||||
for (mindex = 0;MComp[mindex] != NULL;mindex++)
|
||||
{
|
||||
if (!strcmp(MComp[mindex],MemCmp))
|
||||
if (!strcasecmp(MComp[mindex],MemCmp))
|
||||
break;
|
||||
}
|
||||
|
||||
@ -858,9 +858,9 @@ int ShowBackfillWindow(
|
||||
(BFNodeCount >= RequiredNodes) &&
|
||||
(BFProcCount >= RequiredProcs))
|
||||
{
|
||||
if (strcmp(P->Name,CurrentPName) != 0)
|
||||
if (strcasecmp(P->Name,CurrentPName) != 0)
|
||||
{
|
||||
if ((strcmp(CurrentPName,GLOBAL_MPARNAME)) && (index == 0))
|
||||
if ((strcasecmp(CurrentPName,GLOBAL_MPARNAME)) && (index == 0))
|
||||
{
|
||||
sprintf(Buffer,"%sno %s available\n",
|
||||
Buffer,
|
||||
|
Loading…
Reference in New Issue
Block a user