Re: copy and file perms

2010-01-13 Thread Neil Watson
Tonight I build cf again from the latest trunk and now perms are not altered unexpectedly. Did I make a mistake last night or was something fixed in SVN today? -- Neil Watson Linux/UNIX Consultant http://watson-wilson.ca ___ Help-cfengine mailing list

Re: copy and file perms

2010-01-13 Thread NWatson
My point is that the promise is still changing permissions even though no permissions are specifically promised. It seems that the agent defaults to setting the target permissions to match the source permissions. Sincerely, -- Neil Watson 416-673-3465 help-cfengine-boun...@cfengine.org wrote o

Re: copy and file perms

2010-01-13 Thread Mark Burgess
I'm not sure what you are saying here. Neil Watson wrote: > On Mon, Jan 11, 2010 at 07:28:58AM +0100, Mark Burgess wrote: >> >> Neil. You are correct that this option was not implemented. The >> default value of all >> boolean type /true/false options is always false, so preserving >> original pe

Re: copy and file perms

2010-01-12 Thread Neil Watson
On Mon, Jan 11, 2010 at 07:28:58AM +0100, Mark Burgess wrote: Neil. You are correct that this option was not implemented. The default value of all boolean type /true/false options is always false, so preserving original perms should not be the default behaviour. I have patched svn to fix this.

Re: copy and file perms

2010-01-11 Thread Neil Watson
On Mon, Jan 11, 2010 at 07:28:58AM +0100, Mark Burgess wrote: >Neil. You are correct that this option was not implemented. The default value >of all >boolean type /true/false options is always false, so preserving original perms >should not >be the default behaviour. I have patched svn to fix th

Re: copy and file perms

2010-01-10 Thread Mark Burgess
Neil. You are correct that this option was not implemented. The default value of all boolean type /true/false options is always false, so preserving original perms should not be the default behaviour. I have patched svn to fix this. Neil Watson wrote: > Here is a self contained example. > > ##

Re: copy and file perms

2010-01-06 Thread NWatson
I'm running Community 3.0.3. Sincerely, -- Neil Watson 416-673-3465 CONFIDENTIALITY WARNING This communication, including any attachments, is for the exclusive use of addressee and may contain proprietary and/or confidential information. If you are not the intended recipient, any use, copying

Re: copy and file perms

2010-01-05 Thread Mark Burgess
Neil, please say which version you are running M Neil Watson wrote: > Here is a self contained example. > > ## > body common control { > bundlesequence => { "test" }; > } > > bundle common g { > classes: > > "all" expression => "any"; > } > > bundle age

Re: copy and file perms

2010-01-05 Thread Neil Watson
Here is a self contained example. ## body common control { bundlesequence => { "test" }; } bundle common g { classes: "all" expression => "any"; } bundle agent test { files: "/tmp/foobar" copy_from => local_cp("/tmp/src-foobar"),

Re: copy and file perms

2010-01-05 Thread NWatson
Anyone? Sincerely, -- Neil Watson 416-673-3465 help-cfengine-boun...@cfengine.org wrote on 2009-12-31 14:36:23: > Greetings, > > In discussing file promises it is suggested in the reference, and on > this list, that sometimes it is desirable to have separate promises to > mind the contents and

copy and file perms

2009-12-31 Thread Neil Watson
Greetings, In discussing file promises it is suggested in the reference, and on this list, that sometimes it is desirable to have separate promises to mind the contents and permissions of a single file. In this way one can be assured of the meaning of a promise kept class. I think I've found a p