Hi,

I have some problems with 'linktype=copy' which causes copy actions to
happen at every run although files did not changed. E.g. 'cf.foo' with

| control:
|         actionsequence  =  ( copy )
| 
| copy:
|         /srv/cfengine-masterfiles/PUBLIC/test/link      dest=/tmp/link-file 
server=cfengine
|                                                         linktype=copy 
inform=true

and on cfengine host:

| # D=/srv/cfengine-masterfiles/PUBLIC/test/link
| # echo abc > $D/foo
| # ln -s foo $D/link


causes

| # cfagent -f `pwd`/cf.foo -qK
| cfengine:kosh: Updated image /tmp/link-file from master 
/srv/cfengine-masterfiles/PUBLIC/test/link on cfengine
| cfengine:kosh: Object /tmp/link-file had permission 600, changed it to 777

everytime when I execute cfagent.

The permissions of the generated file are wrong (0777 instead of 0644)
so it seems, fileattributes of the symlink and the linked file are mixed
somehow.




Enrico

_______________________________________________
Bug-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/bug-cfengine

Reply via email to