bug-cfengine
[Top][All Lists]
Advanced

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

[PAtCH] Purging symbolic links cfengine 2.0.1


From: Bas van der Vlies
Subject: [PAtCH] Purging symbolic links cfengine 2.0.1
Date: Tue, 21 May 2002 09:28:32 +0200 (MET DST)

There is a bug in cfengine 2.0.1 in the way symbolic links are
handled when the purge option is specified. If in the destination
dir there is a symbolic link (and this link is not in src) then this link
will be followed and will remove all the files where the link pointed to!!!
instead of deleting the link. If replaced the stat() function by the lstat()
function in the file image.c routine PurgeFiles() and this solved this 
error.

See attachment for patch file


 

 


 

--
********************************************************************
*                                                                  *
*  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       *
*                                                                  *
********************************************************************

Attachment: image.patch
Description: image.patch


reply via email to

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