Yep that looks like a bug (so please file a report :-)  However, I'd point out 
that copying recursively to '/' can be dangerous... (but should be allowed 
anyway)

On Jul 7, 2011, at 7:32 AM, no-re...@cfengine.com wrote:

> Forum: CFEngine Help
> Subject: files: copy to "/" does not seem to work
> Author: svenXY
> Link to topic: https://cfengine.com/forum/read.php?3,22757,22757#msg-22757
> 
> Hi, I have this:
> 
> files:
>  any::
>    "/" -> "common_root"
>      handle     => "copy_common_root",
>      comment   => "we first copy everything necessary from the CopyHost",
>      copy_from   => cp_from_configtree("trees/common"),
>      depth_search => recurse("inf");
> 
> 
> which is supposed to recursively copy a tree structure to the root-Directory 
> of my client host, but I get
> 
> cf-agent -f ./promises.cf 
> !! Non-absolute path in source attribute (have no invariant meaning): /
> 
> 
> Is this a feature or simply something that nobody has tried before? As far as 
> I understand it, '/' is an absolute path.
> 
> Cheers,
> Sven
> 
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@cfengine.org
> https://cfengine.org/mailman/listinfo/help-cfengine

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to