Package: webalizer
Version: 2.01.10-26
Severity: normal
Tags: patch

See attached patch.

Webalizer should parse the rotated logfile even when the non-rotated
logfile is empty.

-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.8-3-686-smp
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_US.UTF-8)

Versions of packages webalizer depends on:
ii  debconf               1.4.30.13          Debian configuration management sy
ii  libc6                 2.3.2.ds1-22sarge4 GNU C Library: Shared libraries an
ii  libdb4.2              4.2.52-18          Berkeley v4.2 Database Libraries [
ii  libgd2-xpm            2.0.33-1.1sarge1   GD Graphics Library version 2
ii  libpng12-0            1.2.8rel-1         PNG library - runtime
ii  zlib1g                1:1.2.2-4.sarge.2  compression library - runtime

-- debconf information:
* webalizer/logfile: /var/log/apache/access.log.1
* webalizer/doc_title: Usage Statistics for
  webalizer/upgrading:
* webalizer/directory: /var/www/webalizer
--- webalizer.orig      2007-01-09 07:36:43.256165733 +0100
+++ webalizer   2007-01-09 07:38:29.497422449 +0100
@@ -26,7 +26,10 @@
        xargs ls -l | \
        sed -e 's/[[:space:]]\+/ /g' | \
        cut -d ' ' -f5`
-[ $logsz -gt 0 ] || exit 0
+[ $logsz -gt 0 ] || {
+  ${WEBALIZER_BIN} -c ${WEBALIZER_CONF} -q
+  exit 0
+}
 
 # Run webalizer quietly
 ${WEBALIZER_BIN} -c ${WEBALIZER_CONF} -q

Reply via email to