help-cfengine
[Top][All Lists]
Advanced

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

[PATCH] Make files:touch do touch on dirs as well


From: Adrian Phillips
Subject: [PATCH] Make files:touch do touch on dirs as well
Date: 02 May 2002 11:24:27 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

I needed a way for directories to be fixed as in fixdirs but also
created as in touch, so I've used this patch to make touch on dirs to
do create and fixdirs. It works but may have other consequences that I
haven't noticed yet.

Sincerely,

Adrian Phillips

--- cfengine-2.0.0/src/wrapper.c~       Tue Feb 12 19:36:14 2002
+++ cfengine-2.0.0/src/wrapper.c        Thu May  2 09:15:17 2002
@@ -203,12 +203,6 @@
    }
 else
    {
-   if (TouchDirectory(ptr))  /* Don't check just touch */
-      {
-      ReleaseCurrentLock();
-      return;
-      }
-
    if (ptr->action == create)
       {
       ReleaseCurrentLock();


-- 
Your mouse has moved.
Windows NT must be restarted for the change to take effect.
Reboot now?  [OK]



reply via email to

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