Your message dated Sun, 22 Jan 2006 11:17:27 -0800
with message-id <[EMAIL PROTECTED]>
and subject line Bug#252816: fixed in webalizer 2.01.10-28
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--------------------------------------
Received: (at maintonly) by bugs.debian.org; 5 Jun 2004 09:37:47 +0000
>From [EMAIL PROTECTED] Sat Jun 05 02:37:47 2004
Return-path: <[EMAIL PROTECTED]>
Received: from vsmtp14.tin.it [212.216.176.118]
by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
id 1BWXcZ-0005Wq-00; Sat, 05 Jun 2004 02:37:47 -0700
Received: from npp (82.48.161.145) by vsmtp14.tin.it (7.0.027)
id 40967D65004F0582 for [EMAIL PROTECTED]; Sat, 5 Jun 2004 11:37:15
+0200
Received: from pp by npp with local (masqmail 0.2.11) id 1BWXc0-3i4-00
for <[EMAIL PROTECTED]>; Sat, 05 Jun 2004 11:37:12 +0200
Date: Sat, 5 Jun 2004 11:37:12 +0200
From: Paolo <[EMAIL PROTECTED]>
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
Subject: webalizer: doesn't update stats if current logfile is empty
Message-ID: <[EMAIL PROTECTED]>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="6TrnltStXW4iwmi0"
Content-Disposition: inline
User-Agent: Mutt/1.3.28i
X-Reportbug-Version: 1.50
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE
autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level:
--6TrnltStXW4iwmi0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Package: webalizer
Version: N/A; reported 2004-06-05
Severity: minor
Tags: patch
hi,
today (Sat) I didn't see stats of yesterday; that's 'cauz there was no httpd
activity (it's an intranet httpd), hance the _current_ logfile is void; but
webalizer is supposed to run on rotated logfile (then current, in case).
Pls see my patch - WFM, grind it at your taste :)
-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux npp 2.4.24-pre2 #3 mer dic 24 02:50:45 CET 2003 i686
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED]
--
paolo
GPG/PGP id:0x21426690 kfp:EDFB 0103 A8D8 4180 8AB5 D59E 9771 0F28 2142 6690
--6TrnltStXW4iwmi0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="webalizer_etc_cron.daily.diff"
--- /etc/cron.daily/webalizer.dpkg-dist Fri Jun 4 00:00:00 2004
+++ /etc/cron.daily/webalizer Sat Jun 5 11:17:24 2004
@@ -1,7 +1,7 @@
#!/bin/sh
# /etc/cron.daily/webalizer: webalizer daily maintenance script
# Written by Remco van de Meent <[EMAIL PROTECTED]>
-
+#set -x
WEBALIZER_BIN=/usr/bin/webalizer
WEBALIZER_CONF=/etc/webalizer.conf
@@ -10,26 +10,27 @@
[ -f ${WEBALIZER_BIN} ] || exit 0
[ -f ${WEBALIZER_CONF} ] || exit 0
-# Figure out non-rotated logfile
-nonrotatedlog=`egrep '^LogFile' $WEBALIZER_CONF | \
+rotatedlog=`egrep '^LogFile' $WEBALIZER_CONF | \
sed -e 's/[[:space:]]\+/ /' | \
- cut -d ' ' -f2 | \
+ cut -d ' ' -f2`
+# empty logfile?
+[ -s "${rotatedlog}" ] || exit 0
+# Can we read it? not readable means we made something wrong...
+[ -r "${rotatedlog}" ] || exit 1
+# Run webalizer quietly, exit with ststus code if !0
+${WEBALIZER_BIN} -c ${WEBALIZER_CONF} -q || exit $?
+
+# check current log as well...
+# Figure out non-rotated logfile
+nonrotatedlog=`echo ${rotatedlog} | \
sed -e 's/\.[[:digit:]][\.gz]*$//'`
-# Can we read it?
+# empty logfile?
+[ -s "${nonrotatedlog}" ] || exit 0
+# Can we read it? may not be an error if not readable
[ -r "${nonrotatedlog}" ] || exit 0
-# Check for empty logfile
-logsz=`echo ${nonrotatedlog} | \
- sed -e 's/[[:space:]]\+/ /' | \
- cut -d ' ' -f2 | \
- xargs ls -l | \
- sed -e 's/[[:space:]]\+/ /g' | \
- cut -d ' ' -f5`
-[ $logsz -gt 0 ] || exit 0
-
# Run webalizer quietly
-${WEBALIZER_BIN} -c ${WEBALIZER_CONF} -q
${WEBALIZER_BIN} -c ${WEBALIZER_CONF} -q ${nonrotatedlog}
# Exit with webalizer's exit code
--6TrnltStXW4iwmi0--
---------------------------------------
Received: (at 252816-close) by bugs.debian.org; 22 Jan 2006 19:20:32 +0000
>From [EMAIL PROTECTED] Sun Jan 22 11:20:32 2006
Return-path: <[EMAIL PROTECTED]>
Received: from katie by spohr.debian.org with local (Exim 4.50)
id 1F0kiN-0003V7-Jl; Sun, 22 Jan 2006 11:17:27 -0800
From: Jose Carlos Medeiros <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
X-Katie: $Revision: 1.65 $
Subject: Bug#252816: fixed in webalizer 2.01.10-28
Message-Id: <[EMAIL PROTECTED]>
Sender: Archive Administrator <[EMAIL PROTECTED]>
Date: Sun, 22 Jan 2006 11:17:27 -0800
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level:
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER
autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-CrossAssassin-Score: 4
Source: webalizer
Source-Version: 2.01.10-28
We believe that the bug you reported is fixed in the latest version of
webalizer, which is due to be installed in the Debian FTP archive:
webalizer_2.01.10-28.diff.gz
to pool/main/w/webalizer/webalizer_2.01.10-28.diff.gz
webalizer_2.01.10-28.dsc
to pool/main/w/webalizer/webalizer_2.01.10-28.dsc
webalizer_2.01.10-28_i386.deb
to pool/main/w/webalizer/webalizer_2.01.10-28_i386.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Jose Carlos Medeiros <[EMAIL PROTECTED]> (supplier of updated webalizer package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.7
Date: Fri, 20 Jan 2006 15:59:42 -0200
Source: webalizer
Binary: webalizer
Architecture: source i386
Version: 2.01.10-28
Distribution: unstable
Urgency: low
Maintainer: Jose Carlos Medeiros <[EMAIL PROTECTED]>
Changed-By: Jose Carlos Medeiros <[EMAIL PROTECTED]>
Description:
webalizer - Web server log analysis program
Closes: 81918 98749 114768 252816 258058 293794 298823 309359 327496 338067
343877
Changes:
webalizer (2.01.10-28) unstable; urgency=low
.
* Added a simple FAQ with Questions and Answers in README.Debian.
(closes: #81918, #114768, #258058, #98749, #298823)
* Portuguese po-debconf translation, thanks to Miguel Figueiredo
<[EMAIL PROTECTED]>. (closes: #338067)
* Added more information about DNS lookups in DNS.README file (line 160 to
162). (closes: #309359)
* Changed webalizer.cron.daily to run webalizer even when current log file
is empty. (closes: #252816)
* Solved various buffer overflows, thanks to: Ulf Harnhammar
<[EMAIL PROTECTED]>. (closes: #343877)
* Removed unused file "x".
* Added "sensis.com.au" as SearchEngine in sample.conf. (closes: #327496)
* Deleted CVS directory to solve "source-contains-CVS-dir CVS" lintian
error.
* Added patch with new "Nofollow" option. Thanks to Robert Cheramy
<[EMAIL PROTECTED]> (Closes: #293794)
Files:
5578795415dad2f2c028ca61e39a9d30 784 web optional webalizer_2.01.10-28.dsc
7d06e620f6bf7c6c4b63a003e506d772 203861 web optional
webalizer_2.01.10-28.diff.gz
c7b479edea61b1a1e3e545b43bc5aa3c 311158 web optional
webalizer_2.01.10-28_i386.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFD09YvGKGxzw/lPdkRArAzAKCFbMN1wWdj0gc0DYPV8YFcT5CMhACdHIAF
3l0LIkNk6Cy+Dxq6zPlZNrk=
=PUJi
-----END PGP SIGNATURE-----
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]