allow clients to accept MAUIHOMEDIR in /etc/maui.cfg

git-svn-id: svn://opensvn.adaptivecomputing.com/maui/trunk@50 3f5042e3-fb1d-0410-be18-d6ca2573e517
This commit is contained in:
dev 2006-01-16 20:26:35 +00:00
parent 35f9a009c7
commit a0264311b9
2 changed files with 6 additions and 2 deletions

View File

@ -141,6 +141,9 @@ int main(
ServerProcessArgs(ArgC,tmpArgV,FALSE);
/* walk to end of ArgV[] because ServerProcessArgs() may free portions of tmpArgV[]
as side-affect */
for (aindex = 0;aindex < ArgC;aindex++)
{
if (ArgV[aindex] == NULL)
@ -590,7 +593,7 @@ int MServerConfigShow(
int ServerProcessArgs(
int ArgC,
char **ArgV,
char **ArgV, /* I (potentially modified) */
int PreLoad) /* I (boolean) */
{

View File

@ -681,7 +681,8 @@ int __MCInitialize()
if ((buf = MFULoad(MASTER_CONFIGFILE,1,macmRead,&count,&SC)) != NULL)
{
if ((ptr = strstr(buf,MParam[pMServerHomeDir])) != NULL)
if (((ptr = strstr(buf,MParam[pMServerHomeDir])) != NULL) ||
((ptr = strstr(buf,"MAUIHOMEDIR")) != NULL))
{
MUSScanF(ptr,"%x%s %x%s",
sizeof(tmpLine),