[Logcheck-commits] CVS logcheck/src
CVS User alfie
logcheck-devel@lists.alioth.debian.org
Mon, 17 May 2004 09:15:44 -0600
Update of /cvsroot/logcheck/logcheck/src
In directory haydn:/tmp/cvs-serv3718/src
Modified Files:
logcheck
Log Message:
src/logcheck: test also for readability for the header.txt and footer.txt.
debian/changelog: stripped all trailing whitespace from the file.
--- /cvsroot/logcheck/logcheck/src/logcheck 2004/05/16 08:33:59 1.27
+++ /cvsroot/logcheck/logcheck/src/logcheck 2004/05/17 15:15:44 1.28
@@ -22,7 +22,7 @@
# along with Logcheck; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-# $Id: logcheck,v 1.27 2004/05/16 08:33:59 ttroxell Exp $
+# $Id: logcheck,v 1.28 2004/05/17 15:15:44 alfie Exp $
# Set the umask
@@ -147,7 +147,7 @@
# Add an identification line at the beginning of the sent mail
setintro() {
- if [ -f /etc/logcheck/header.txt ] ; then
+ if [ -f /etc/logcheck/header.txt -a -r /etc/logcheck/header.txt ] ; then
# This might fail, but the header is not critical
$CAT /etc/logcheck/header.txt >> $TMPDIR/report
fi
@@ -156,7 +156,7 @@
# Add a footer to the report.
setfooter() {
- if [ -f /etc/logcheck/footer.txt ] ; then
+ if [ -f /etc/logcheck/footer.txt -a -r /etc/logcheck/footer.txt ] ; then
# This might fail, but the footer is not critical
$CAT /etc/logcheck/footer.txt >> $TMPDIR/report
fi