bug-cfengine
[Top][All Lists]
Advanced

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

Copy purge bug in cfengine 2.0


From: Bas van der Vlies
Subject: Copy purge bug in cfengine 2.0
Date: Mon, 25 Mar 2002 16:12:47 +0100 (MET)

On IRIX (use native c-compiler) i experience the following bug:

  /var/copy
    dest=/var/dest
    r=inf
    purge=true

If in the dest directory contains a directory that is not in copy we get
a segv. I have change the image.c and patched the function 

PurgeFiles(...)
....
          if (S_ISDIR(statbuf.st_mode))
             {
             struct Tidy tp;
             struct TidyPattern tpat;

             printf("Bas gaat het hier mis\n");
             tp.maxrecurse = 2;
             tp.tidylist = &tpat;
             tp.next = NULL;
             tp.path = filename;

             /* Bas van der Vlies fixes segv on IRIX
             */
             tp.exclusions = NULL;
             tp.ignores = NULL;

                Regards

--
********************************************************************
*                                                                  *
*  Bas van der Vlies                     e-mail: address@hidden      *
*  SARA - Academic Computing Services    phone:  +31 20 592 8012   *
*  Kruislaan 415                         fax:    +31 20 6683167    *
*  1098 SJ Amsterdam                     WWW:    www.sara.nl       *
*                                                                  *
********************************************************************



reply via email to

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