bug-cfengine
[Top][All Lists]
Advanced

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

Cfengine 2.1.8 purge=true verbose bug


From: Stephen Haynes
Subject: Cfengine 2.1.8 purge=true verbose bug
Date: Wed, 4 Aug 2004 15:14:22 +1000

With the recent moving of the code to warn about purging of NFS mounted
file systems it has uncovered a related bug in Cfengine 2.1.8.

I now recieve the following message when running cfagent in verbose mode
for a copy that has purge=true set when I have a server defined.

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! Purge detected in local (non-cfservd) file copy to file /var/cfengine/inputs
!! Do not risk purge if source /srv/cfengine/inputs is NFS mounted (see manual)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

The patch is as follows:

--- cfengine-2.1.8.orig/src/install.c   2004-08-02 18:52:11.000000000 +0000
+++ cfengine-2.1.8/src/install.c        2004-08-04 04:55:45.000000000 +0000
@@ -5027,7 +5027,7 @@
          ptr->typecheck = TYPECHECK;
          }
 
-      if (ptr->purge == 'y' && strstr(ep->name,"localhost") == 0)
+      if (ptr->purge == 'y' && strstr(ep->name,"localhost") != 0)
          {
          
Verbose("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n");
          Verbose("!! Purge detected in local (non-cfservd) file copy to file 
%s\n",ptr->destination);




reply via email to

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