Hello,

there seem to be problems with 'linktype=copy'. When having a
'cfagent.conf' like

| control:
|         actionsequence  = ( copy )
| copy:
|         /home/ensc/tmp/cf/data/foo/link         dest=/tmp/link server=kosh
|                                                 linktype=copy

and a directory layout like

| /home/ensc/tmp/cf/data/
| |-- bar
| |   `-- termcap
| `-- foo
|     `-- link -> ../bar/termcap

(.../bar/termcap is the 800KiB sized copy of /etc/termcap), 'cfagent'
runs seems to succeed with:

| [EMAIL PROTECTED] cf]$ CFINPUTS=`pwd` /usr/sbin/cfagent -b  -qKI
| cfengine:kosh: Update of image /tmp/link from master 
/home/ensc/tmp/cf/data/foo/link on kosh
| cfengine:kosh: Object /tmp/link had permission 600, changed it to 777
| [EMAIL PROTECTED] cf]$ 

but the 'cfservd -Fvvvvv' server reports

| cfservd: Host kosh.bigo.ensc.de granted access to 
/home/ensc/tmp/cf/data/foo/link
| cfservd: Host kosh.bigo.ensc.de granted access to 
/home/ensc/tmp/cf/data/foo/link
| cfservd: Couldn't send
| cfservd: send
| cfservd: Send failed in GetFile
| cfservd: send

and the result is a very short and corrupted file:

| [EMAIL PROTECTED] cf]$ ls -l /tmp/link data/bar/termcap 
| -rwxrwxrwx 1 ensc ensc     14  3. Mär 12:57 /tmp/link
| -rw-r--r-- 1 ensc ensc 807103  3. Mär 12:02 data/bar/termcap
| [EMAIL PROTECTED] cf]$ cat /tmp/link
| ######## [EMAIL PROTECTED] cf]$


I am using cfengine-2.1.22 from Fedora Extras 6.




Enrico

Attachment: pgpEAyd3uCdDr.pgp
Description: PGP signature

_______________________________________________
Bug-cfengine mailing list
Bug-cfengine@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-cfengine

Reply via email to