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: Mark . Burgess
Subject: Re: syntax changes in cfservd.conf, 2.0.8p1
Date: Thu, 20 Nov 2003 21:57:18 +0100 (MET)

Thanks for your patch.- much more useful ;)

M

On 20 Nov, Marion Hakanson wrote:
>> 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,
> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Work: +47 22453272            Email:  address@hidden
Fax : +47 22453205            WWW  :  http://www.iu.hio.no/~mark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~





reply via email to

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