Your message dated Sun, 05 Feb 2012 18:51:34 +0000
with message-id <[email protected]>
and subject line Bug#482771: fixed in webalizer 2.23.05-1
has caused the Debian Bug report #482771,
regarding wrong values for incoming and outgoing flux in webalizer
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 this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
482771: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=482771
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: webalizer
Version: 2.01.10-32
Tags: patch
Severity: important

The Debian version of webalizer includes support for incoming and
outgoing bytes effectively transfered. These values are provided by
apache's mod_logio, which is included in Debian as well.

However the totals calculated by webalizer for these fields (described
as kB In and kB Out) are wrong because of two bus. First, the incoming
value is clobbered by the outgoing one, due to a typo. Second, both
values are not read from the webalizer.current state file due to a
format mismatch in the writing/reading functions.

These bugs are important if you need the incoming and outgoing flux
values. Note also that the standard kB F is nearly meaningless for a
web server because it doesn't represent what is effectively sent
through the net; it just shows the Content-Length of the object being
sent.

The following patch fixes these problems.

diff -ur webalizer-2.01.10/hashtab.c webalizer-2.01.10-patch/hashtab.c
--- webalizer-2.01.10/hashtab.c 2008-05-21 20:41:04.000000000 -0300
+++ webalizer-2.01.10-patch/hashtab.c   2008-05-21 19:15:51.000000000 -0300
@@ -177,7 +177,7 @@
          nptr->count = count;
          nptr->files = file;
          nptr->xfer  = xfer;
-         nptr->ixfer = oxfer;
+         nptr->ixfer = ixfer;
          nptr->oxfer = oxfer;
          nptr->next  = NULL;
          htab[hash(str)] = nptr;
@@ -244,7 +244,7 @@
          nptr->count = count;
          nptr->files = file;
          nptr->xfer  = xfer;
-         nptr->ixfer = oxfer;
+         nptr->ixfer = ixfer;
          nptr->oxfer = oxfer;
          nptr->next  = htab[hash(str)];
          htab[hash(str)]=nptr;
diff -ur webalizer-2.01.10/preserve.c webalizer-2.01.10-patch/preserve.c
--- webalizer-2.01.10/preserve.c        2008-05-21 20:41:04.000000000 -0300
+++ webalizer-2.01.10-patch/preserve.c  2008-05-21 20:47:07.000000000 -0300
@@ -307,7 +307,7 @@
       hptr=sm_htab[i];
       while (hptr!=NULL)
       {
-         snprintf(buffer,sizeof(buffer),"%s\n%d %lld %lld %.0f %lld %lld\n%s 
%.0f %.0f\n",
+         snprintf(buffer,sizeof(buffer),"%s\n%d %lld %lld %.0f %lld %lld %.0f 
%.0f\n%s\n",
               hptr->string,
               hptr->flag,
               hptr->count,
@@ -315,9 +315,9 @@
               hptr->xfer,
               hptr->visit,
               hptr->tstamp,
-              (hptr->lasturl==blank_str)?"-":hptr->lasturl,
               hptr->ixfer,
-              hptr->oxfer);
+                         hptr->oxfer,
+                         (hptr->lasturl==blank_str)?"-":hptr->lasturl);
          if (fputs(buffer,fp)==EOF) return 1;  /* error exit */
          hptr=hptr->next;
       }
@@ -331,7 +331,7 @@
       hptr=sd_htab[i];
       while (hptr!=NULL)
       {
-         snprintf(buffer,sizeof(buffer),"%s\n%d %lld %lld %.0f %lld %lld\n%s 
%.0f %.0f\n",
+         snprintf(buffer,sizeof(buffer),"%s\n%d %lld %lld %.0f %lld %lld %.0f 
%.0f\n%s\n",
               hptr->string,
               hptr->flag,
               hptr->count,
@@ -339,9 +339,9 @@
               hptr->xfer,
               hptr->visit,
               hptr->tstamp,
-              (hptr->lasturl==blank_str)?"-":hptr->lasturl,
               hptr->ixfer,
-              hptr->oxfer);
+                         hptr->oxfer,
+                         (hptr->lasturl==blank_str)?"-":hptr->lasturl);
          if (fputs(buffer,fp)==EOF) return 1;
          hptr=hptr->next;
       }



--- End Message ---
--- Begin Message ---
Source: webalizer
Source-Version: 2.23.05-1

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.23.05-1.debian.tar.gz
  to main/w/webalizer/webalizer_2.23.05-1.debian.tar.gz
webalizer_2.23.05-1.dsc
  to main/w/webalizer/webalizer_2.23.05-1.dsc
webalizer_2.23.05-1_amd64.deb
  to main/w/webalizer/webalizer_2.23.05-1_amd64.deb
webalizer_2.23.05.orig.tar.gz
  to main/w/webalizer/webalizer_2.23.05.orig.tar.gz



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.
Felipe Augusto van de Wiel (faw) <[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.8
Date: Sun, 05 Feb 2012 16:21:18 -0200
Source: webalizer
Binary: webalizer
Architecture: source amd64
Version: 2.23.05-1
Distribution: unstable
Urgency: low
Maintainer: Julien Viard de Galbert <[email protected]>
Changed-By: Felipe Augusto van de Wiel (faw) <[email protected]>
Description: 
 webalizer  - web server log analysis program
Closes: 399017 400256 405699 409454 411482 411847 419717 452259 461176 482771 
491200 520408 557038 558749 558751 632014 632021 650645 654801
Changes: 
 webalizer (2.23.05-1) unstable; urgency=low
 .
   [ Julien Viard de Galbert ]
   * New upstream release. Closes: #491200, #452259, #405699, #557038, #411482,
     #411847, #558751, #400256
   * Adopted package with maintainers consent.
   * Acknowledge all NUMs, thanks guys!
   * Repackaged using format 3.0 (quilt)
   * Converted debian/copyright to DEP-5 format
   * Converted patches from dpatch to quilt with DEP-3 header format
     - 01_basic_patch: dropped, most changes were integrated upstream.
       changes for consistency with previous version.
     - 02_64bit: dropped, already applied upstream.
     - 03_history: dropped, new version already have a 10 year history.
       Also this patch was not really compatible with 05_apache_logio in
       previous version, the summary page did not have the logio columns
       for the extra lines added by this history patch resulting in wrong
       array layout, as nobody complained on the BTS I assume nobody used
       the feature, so I remove it ;)
     - 04_geolizer: dropped, GeoIP already integrated upstream.
     - 05_apache_logio: ported to new version.
       Integrating fix for the total calculation. Closes: #482771
       While porting I rewrote part of code that Closes: #558749
     - 06_UserColor: dropped, already integrated upstream.
     - 07_w3c-v4: dropped, already integrated upstream.
     - 08_symlink_vulnerability: dropped, already integrated upstream.
     - 09_ipv6_support: dropped, already implemented upstream.
     - 10_remove_db1_dependence: dropped, no longer needed.
     - 11_various_buffer_overflows: dropped, already integrated upstream.
     - 12_recognize_Opera_browsers: dropped, already integrated upstream.
     - 13_add_NoFollow_feature: dropped, upstream LinkReferrer option does it.
     - 14_add_search_engines: Modified to also uncomment the SearchEngine
       directives from the sample configuration.
     - 15_ignore_localhost: refreshed.
     - 16_fix_typos_webalizer.1: dropped, already integrated upstream.
     - 18_ttf_support_throught_libgd: refreshed.
     - 19_add_PagePrefix_feature: dropped, already integrated upstream.
     - 20_fix_capital_letter_option: dropped, already implemented upstream.
     - 21_remove_-v_option: dropped, upstream changed -v to verbose.
     - 22_php_as_htm_in_sample.conf: refreshed.
     - 17_gettext: imported and converted in three patches:
       + 23_gettext_first_part, 24_gettext_generated and 25_gettext_po_files
       + Fix month translations, thanks Gerome Fournier. Closes: #520408
       + Fix some encodings: cs.po (Closes: #409454), ko.po (Closes: #461176)
       + Restored ReportTitle and -t options.
   * Added new patches:
     - 01_symlink_vulnerability.diff fixing the symlink vulnerability for
       the .htaccess file (similar to previous 08_symlink_vulnerability)
     - 02_fix_a_spelling_error.diff fix a spelling error in wcmgr.c
     - 06_apache_logio_optional.diff this patch affect the apache_logio patch
       It adds a InOutKb option to make the In/Out KByte data optional.
       There are no command line option, but it can detect if logio data are
       available. So this should be fine to Closes: #399017
     - 07_apache_logio_color_config.diff this patch affect the two previous
       apache_logio patches. It adds options to configure the color for the
       new data.
   * Fixed cron job script in case all .conf are removed. Closes: #419717
   * Updated Catalan translation of debconf templates (Jordi Mallach).
 .
   [ Christian Perrier ]
   * Fix pending l10n issues. Debconf translations:
     - Korean (강민지).  Closes: #632014, #632021
     - Dutch (Jeroen Schot).  Closes: #650645
     - Bokmål (Bjørn Steensrud).  Closes: #654801
 .
   [ Felipe Augusto van de Wiel (faw) ]
   * Fix some spell errors in doc files.
   * Updated Policy to 3.9.2 without changes.
Checksums-Sha1: 
 f1292fed47e3023a447d8defdb86571f643eb339 1520 webalizer_2.23.05-1.dsc
 bc28ff28d9484c8e9793ec081c7cbfcb1f577351 537287 webalizer_2.23.05.orig.tar.gz
 64d16cbbffa90167b5ae15a0dc680a410706fea5 446950 
webalizer_2.23.05-1.debian.tar.gz
 82235c2808af9deed07937cfb412704aaeb674bf 372208 webalizer_2.23.05-1_amd64.deb
Checksums-Sha256: 
 e8b2610a45763ca7d9f3d0f9c5931b088d785b493a6d96ff9b256e1098fc8c78 1520 
webalizer_2.23.05-1.dsc
 420cbb515df87a39d17d6810bdf4968d82b4ba6d90c2e0a9ce23d864c2896f6f 537287 
webalizer_2.23.05.orig.tar.gz
 33f6a73369f7563411fdec8b5e9b32aae5338a7715b9b3d4f66696901571f369 446950 
webalizer_2.23.05-1.debian.tar.gz
 0737703aeef6406ab1d70ae3c31c83684cb6ec03a291cf10c6ed5d84a67c2613 372208 
webalizer_2.23.05-1_amd64.deb
Files: 
 ff7e61990a02b2202ac752296144e138 1520 web optional webalizer_2.23.05-1.dsc
 304338cf3b1e9389123380d5f7d88d58 537287 web optional 
webalizer_2.23.05.orig.tar.gz
 80fa65c5ddbd1089918885252e02b4f8 446950 web optional 
webalizer_2.23.05-1.debian.tar.gz
 d11b9455397a5d621d6470854c76f9e4 372208 web optional 
webalizer_2.23.05-1_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEARECAAYFAk8uyZgACgkQCjAO0JDlykY7mQCggg5sN53YFhHnCyeVS7RBMOqO
UXIAnjjE7KW/SdiphVjFigDvM+jLPckf
=Gw67
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to