Package: cfengine3 Version: 3.1.4+dsfg-1 Severity: normal Tags: patch
After installing 3.1.4 my machine started logging like this myhost:/var/lib/cfengine3# cf-agent -K -I -f failsafe.cf !! Can no longer access file /var/lib/cfengine3/cfagent.myhost.log, which needed editing! !!! System reports error for stat: "No such file or directory" I: Report relates to a promise with handle "" I: Made in version 'not specified' of '/var/lib/cfengine3/inputs/failsafe.cf' near line 75 I: Comment: Copy policy and templates from policy server !! Can no longer access file /var/lib/cfengine3/cfagent.myhost.log, which needed editing! !!! System reports error for stat: "No such file or directory" I: Report relates to a promise with handle "" I: Made in version 'not specified' of '/var/lib/cfengine3/inputs/failsafe.cf' near line 83 I: Comment: Copy required scripts from policy server !! Can no longer access file /var/lib/cfengine3/cfagent.myhost.log, which needed editing! !!! System reports error for stat: "No such file or directory" I: Report relates to a promise with handle "" I: Made in version 'not specified' of '/var/lib/cfengine3/inputs/failsafe.cf' near line 90 I: Comment: Copy host specific information from policy server I located the error to a missed referense to a logfile that the fhs-compliance patch moves. Instead of one reference to the logfile from files_interfaces.c there was acctualy 2. The file needs patching in the following two places instead of just the first one. --- a/src/files_interfaces.c +++ b/src/files_interfaces.c @@ -1345,7 +1345,7 @@ b.edits.backup = cfa_nobackup; b.edits.maxfilesize = 1000000; -snprintf(filename,CF_BUFSIZE,"%s/cfagent.%s.log",CFWORKDIR,VSYSNAME.nodename); +snprintf(filename,CF_BUFSIZE,"/var/log/cfagent.%s.log",VSYSNAME.nodename); MapName(filename); if (!LoadFileAsItemList(&VSETUIDLIST,filename,b,pp)) @@ -1365,7 +1365,7 @@ b.edits.backup = cfa_nobackup; b.edits.maxfilesize = 1000000; -snprintf(filename,CF_BUFSIZE,"%s/cfagent.%s.log",CFWORKDIR,VSYSNAME.nodename); +snprintf(filename,CF_BUFSIZE,"/var/log/cfagent.%s.log",VSYSNAME.nodename); MapName(filename); PurgeItemList(&VSETUIDLIST,"SETUID/SETGID"); -- System Information: Debian Release: 5.0.8 APT prefers oldstable APT policy: (500, 'oldstable') Architecture: i386 (i686) Kernel: Linux 2.6.26-2-686-bigmem (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages cfengine3 depends on: ii libacl1 2.2.47-2 Access control list shared library ii libattr1 1:2.4.43-2 Extended attribute shared library ii libc6 2.7-18lenny7 GNU C Library: Shared libraries ii libdb4.6 4.6.21-11 Berkeley v4.6 Database Libraries [ ii libpcre3 7.6-2.1 Perl 5 Compatible Regular Expressi ii libssl0.9.8 0.9.8g-15+lenny11 SSL shared libraries cfengine3 recommends no packages. cfengine3 suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org