Bug#419676: [Pkg-aide-maintainers] Bug#419676: aide's daily cron script fails with etch when using NOISE
OK, done also realized I now need to escape regex special chars in the NOISE string : \ /\(var/\(log\|lib\|run\)\|tmp\) fi and that many more things are left to the operator (sarge version used to automatically add directory definitions in conf file, tune for well-known content. This disappeared from Etch's std install or I missed something. Thanks Regards, Guillaume 2007/4/18, Marc Haber [EMAIL PROTECTED]: On Wed, Apr 18, 2007 at 05:16:11PM +0200, Guillaume Lécroart wrote: Patch did not apply. Probably not cleanly, since it was geared against the cron.daily script from unstable. It should, however, be quite easy to understand and to apply manually. Greetings Marc -- - Marc Haber | I don't trust Computers. They | Mailadresse im Header Mannheim, Germany | lose things.Winona Ryder | Fon: *49 621 72739834 Nordisch by Nature | How to make an American Quilt | Fax: *49 3221 2323190
Bug#419676: [Pkg-aide-maintainers] Bug#419676: aide's daily cron script fails with etch when using NOISE
On Fri, Apr 20, 2007 at 11:13:22AM +0200, Guillaume Lécroart wrote: also realized I now need to escape regex special chars in the NOISE string : \ /\(var/\(log\|lib\|run\)\|tmp\) fi This has always been the case. and that many more things are left to the operator (sarge version used to automatically add directory definitions in conf file, tune for well-known content. This disappeared from Etch's std install or I missed something. The directory definitions are not necessary any more since aide does not print the excessive warnings any more. Well-known content is now meant to be not generated in the first place by virtue of better rules. I personally stopped using the de-noise feature after establishing the new rule sets. See NEWS.Debian for that. Greetings Marc -- - Marc Haber | I don't trust Computers. They | Mailadresse im Header Mannheim, Germany | lose things.Winona Ryder | Fon: *49 621 72739834 Nordisch by Nature | How to make an American Quilt | Fax: *49 3221 2323190 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#419676: [Pkg-aide-maintainers] Bug#419676: aide's daily cron script fails with etch when using NOISE
Marc, Patch did not apply. My /etc/cron.d/aide's line 227 looks like this : $ARUNLOG sed -n '1,/^Detailed information about changes:/p' | \ other details follow : # md5sum /etc/cron.daily/aide 3d2f3e09774bb05d5564a2f2d171777f /etc/cron.daily/aide # stat !$ stat /etc/cron.daily/aide File: `/etc/cron.daily/aide' Size: 12686 Blocks: 28 IO Block: 4096 regular file Device: 806h/2054d Inode: 92375 Links: 1 Access: (0755/-rwxr-xr-x) Uid: (0/root) Gid: (0/root) Access: 2007-04-18 16:44:50.836752216 +0200 Modify: 2007-04-10 22:32:02.0 +0200 Change: 2007-04-10 22:32:02.0 +0200 are we trying to patch the same version? (Version: 0.13.1-2) from stable=etch Thanks Regards, Guillaume 2007/4/17, Marc Haber [EMAIL PROTECTED]: tags #419676 confirmed thanks On Tue, Apr 17, 2007 at 01:20:36PM +0200, Guillaume Lécroart wrote: Package: aide Version: 0.13.1 This is not a Debian version number. Please consider using the Debian reportbug tool, which will collect correct version data of package and dependencies. Aide's daily cron script fails with the following message : /etc/cron.daily/aide: /etc/cron.daily/aide: line 229: /tmp/aidenpcAqTF: cannot overwrite existing file run-parts: /etc/cron.daily/aide exited with return code 1 line 229 contains a redirection to a file creataed at line 227 using the 'tempfile' utility. Script sets bash's '-G' flag preventing overwriting an existing file. Confirmed. Looks like nobody (including me) was actually using the denoise feature. Good catch. Please try the following patch against the cronjob of aide 0.13.1-5. --- /etc/cron.daily/aide.orig 2007-04-17 14:12:18.0 +0200 +++ /etc/cron.daily/aide2007-04-17 14:13:55.0 +0200 @@ -277,14 +277,14 @@ if [ -n ${ARUNLOG:-} ] [ -s $ARUNLOG ]; then if [ -n ${NOISE:-} ]; then - NOISETMP=$(tempfile --directory /tmp --prefix aidenoise) - NOISETMP2=$(tempfile --directory /tmp --prefix aidenoise) + NOISETMP=$(mytempfile aidenoise1) + NOISETMP2=$(mytempfile aidenoise2) $ARUNLOG sed -n '1,/^Detailed information about changes:/p' | \ grep '^\(changed\|removed\|added\):' | \ - grep -v ^added: THERE WERE ALSO [0-9]\+ FILES ADDED UNDER THIS DIRECTORY $NOISETMP2 + grep -v ^added: THERE WERE ALSO [0-9]\+ FILES ADDED UNDER THIS DIRECTORY $NOISETMP2 if [ -n $NOISE ]; then -$NOISETMP2 grep -v ^\(changed\|removed\|added\):$NOISE $NOISETMP +$NOISETMP2 grep -v ^\(changed\|removed\|added\):$NOISE $NOISETMP printf $MAILFILE De-Noised output removes everything matching %s.\n $NOISE fi Greetings Marc -- - Marc Haber | I don't trust Computers. They | Mailadresse im Header Mannheim, Germany | lose things.Winona Ryder | Fon: *49 621 72739834 Nordisch by Nature | How to make an American Quilt | Fax: *49 3221 2323190
Bug#419676: [Pkg-aide-maintainers] Bug#419676: aide's daily cron script fails with etch when using NOISE
On Wed, Apr 18, 2007 at 05:16:11PM +0200, Guillaume Lécroart wrote: Patch did not apply. Probably not cleanly, since it was geared against the cron.daily script from unstable. It should, however, be quite easy to understand and to apply manually. Greetings Marc -- - Marc Haber | I don't trust Computers. They | Mailadresse im Header Mannheim, Germany | lose things.Winona Ryder | Fon: *49 621 72739834 Nordisch by Nature | How to make an American Quilt | Fax: *49 3221 2323190 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#419676: [Pkg-aide-maintainers] Bug#419676: aide's daily cron script fails with etch when using NOISE
tags #419676 confirmed thanks On Tue, Apr 17, 2007 at 01:20:36PM +0200, Guillaume Lécroart wrote: Package: aide Version: 0.13.1 This is not a Debian version number. Please consider using the Debian reportbug tool, which will collect correct version data of package and dependencies. Aide's daily cron script fails with the following message : /etc/cron.daily/aide: /etc/cron.daily/aide: line 229: /tmp/aidenpcAqTF: cannot overwrite existing file run-parts: /etc/cron.daily/aide exited with return code 1 line 229 contains a redirection to a file creataed at line 227 using the 'tempfile' utility. Script sets bash's '-G' flag preventing overwriting an existing file. Confirmed. Looks like nobody (including me) was actually using the denoise feature. Good catch. Please try the following patch against the cronjob of aide 0.13.1-5. --- /etc/cron.daily/aide.orig 2007-04-17 14:12:18.0 +0200 +++ /etc/cron.daily/aide2007-04-17 14:13:55.0 +0200 @@ -277,14 +277,14 @@ if [ -n ${ARUNLOG:-} ] [ -s $ARUNLOG ]; then if [ -n ${NOISE:-} ]; then - NOISETMP=$(tempfile --directory /tmp --prefix aidenoise) - NOISETMP2=$(tempfile --directory /tmp --prefix aidenoise) + NOISETMP=$(mytempfile aidenoise1) + NOISETMP2=$(mytempfile aidenoise2) $ARUNLOG sed -n '1,/^Detailed information about changes:/p' | \ grep '^\(changed\|removed\|added\):' | \ - grep -v ^added: THERE WERE ALSO [0-9]\+ FILES ADDED UNDER THIS DIRECTORY $NOISETMP2 + grep -v ^added: THERE WERE ALSO [0-9]\+ FILES ADDED UNDER THIS DIRECTORY $NOISETMP2 if [ -n $NOISE ]; then -$NOISETMP2 grep -v ^\(changed\|removed\|added\):$NOISE $NOISETMP +$NOISETMP2 grep -v ^\(changed\|removed\|added\):$NOISE $NOISETMP printf $MAILFILE De-Noised output removes everything matching %s.\n $NOISE fi Greetings Marc -- - Marc Haber | I don't trust Computers. They | Mailadresse im Header Mannheim, Germany | lose things.Winona Ryder | Fon: *49 621 72739834 Nordisch by Nature | How to make an American Quilt | Fax: *49 3221 2323190 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]