maks attems
2004-May-15 09:45 UTC
[Logcheck-devel] Re: [Logcheck-commits] CVS logcheck/src
On Sat, 15 May 2004, CVS User ttroxell wrote:> if [ -f /etc/logcheck/header.txt ] ; then > - $CAT /etc/logcheck/header.txt >> $TMPDIR/report > + $CAT /etc/logcheck/header.txt >> $TMPDIR/report \ > + || error "Could not append header to $TMPDIR/report Disk full?" > fi > } > > @@ -152,7 +157,8 @@ > # Add a footer to the report. > setfooter() { > if [ -f /etc/logcheck/footer.txt ] ; then > - $CAT /etc/logcheck/footer.txt >> $TMPDIR/report > + $CAT /etc/logcheck/footer.txt >> $TMPDIR/report \ > + || error "Could not append footer to $TMPDIR/report Disk full?" > fiwell i've thought about these, but are they critical? we might have no /etc/logcheck/header.txt, and actually we do have no /etc/logcheck/footer.txt so aboves fails anyway. i would prefer to still report and forget aboves *txt, but i might be wrong. actually on my server i had an bad acl and logcheck had no read access to /etc/logcheck/header.txt, logcheck still reported security events, i found that neat. a++ maks -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://lists.alioth.debian.org/pipermail/logcheck-devel/attachments/20040515/63eca653/attachment.pgp
Todd Troxell
2004-May-15 09:52 UTC
[Logcheck-devel] Re: [Logcheck-commits] CVS logcheck/src
On Sat, May 15, 2004 at 11:45:22AM +0200, maks attems wrote:> well i've thought about these, but are they critical?Yeah, I suppose they should not be fatal. There may be others that should avoid exiting too. I was looking to catch everything. Cheers, -- [ Todd J. Troxell ,''`. Student, Debian GNU/Linux Developer, SysAdmin, Geek : :' : http://debian.org || http://rapidpacket.com/~xtat `. `' `- ] -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://lists.alioth.debian.org/pipermail/logcheck-devel/attachments/20040515/a7341436/attachment.pgp
Possibly Parallel Threads
- Bug#251364: logcheck: preinst has bashism, fails with dash and LANG != C
- Bug#252597: logcheck: user logchecks mails should be delivered to root
- Bug#282378: logcheck-database: messages from USB joystick use
- Bug#287184: logcheck overwriting ownership/permissions of /etc/logcheck/* on upgrades
- Bug#267587: logcheck-database: Additional rule needed for postfix