bug-cfengine
[Top][All Lists]
Advanced

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

Re: editfiles bug?


From: Mark . Burgess
Subject: Re: editfiles bug?
Date: Wed, 29 Aug 2001 09:31:45 +0200 (MET DST)

On 29 Aug, Hanuš Adler wrote:
> hello,
> 
> I have this recipe which is working differently on Solaris 7 and Solaris
> 8. I suppose it is a bug. See comments:
> 
> editfiles:
>         postfixslaves::
> 
>                 { /etc/postfix/main.cf
> 
>       # This following part works on Solaris 7 but
>       # not on Solaris 8 (on exactly the same file)
>       # When run with -v, it says something like it cannot
>       # locate line matching "# relayhost.*". I have tried lots
>       # similar regular expressions but none has worked.
> 
>                 BeginGroupIfNoLineMatching "^relayhost.*"
>                         LocateLineMatching "# relayhost.*"
>                         InsertLine "relayhost = [172.26.190.11]"
>                 EndGroup
> 
>       # For Solaris 8 I had to add this workaround:
> 
>                 AppendIfNoSuchLine "relayhost = [172.26.190.11]"
> 
>                 DefineClasses "ReloadPostfix"
>                 }
> 
> Unfortunately, not being a C programmer, I am unable to find the cause.
> 
> Regards,
> 
> Hanus Adler 
> 


There should be no difference between these. My guess is that 
you have somehow mixed versions of regex library/header files.
This is usually the cause of regular expression problems. For
instance, if you have the header file for solaris 8, but the
library for 7, or if you have GNU rx library somewhere, and you
are getting the header file from that, but the library from solaris
then this kind fo thing can occur. Otherwise, I have no idea why
there would be any change here.

Mark


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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]