help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: syntax changes in cfservd.conf, 2.0.8p1


From: Marion Hakanson
Subject: Re: syntax changes in cfservd.conf, 2.0.8p1
Date: Thu, 20 Nov 2003 12:46:36 -0800

> Well, then you'll have to solve more problems than you need to.
> There is no reason not to go to 2.1.0p1.
> . . .

Except that 2.1.0p1 appears to have this same bug.  Here's the code
from src/parse.c, function HandleServerRule(), in both 2.1.0p1 and 2.0.8p1:

============================================
void HandleServerRule(object)

char *object;

{ char buffer[bufsize];

ExpandVarstring(object,buffer,"");
Debug("HandleServerRule(%s=%s)\n",object,buffer);

 if (*object == '/')
    {
    Debug("\n\nNew admit/deny object=%s\n",buffer);
    strcpy(CURRENTAUTHPATH,buffer);
    }
 else
. . .
============================================


The fix is to change

 if (*object == '/')

to

 if (*buffer == '/')


It's hard to believe I'm the only person in the world to use variables
in my cfservd.conf....

Regards,

-- 
Marion Hakanson <address@hidden>
CSE Computing Facilities






reply via email to

[Prev in Thread] Current Thread [Next in Thread]