Package: amavis-stats
Version: 0.1.12-7
Severity: grave
Tags: patch
Justification: renders package unusable


amavis-stats generates a message like:

amavis-stats::error: rrd_graph(): Garbage ':25:00 2005 \r' after command: 
COMMENT:Wed Aug 31 09:25:00 2005 \r

instead of each graph. This occured after upgrading php4-rrdtools (and
possibly other packages).

For my usage, I fixed it by changing
/usr/share/amavis-stats/amavis-stats.php lines 651 and 780 from:

$ret = rrd_graph("/usr/share/amavis-stats/$img" , $opts, count($opts));

to:

$ret = rrd_graph("/usr/share/amavis-stats/$img" , $opts, count($opts)-1);

(ie. just told it to ignore what it thinks is trailing junk.)

This obvously isn't a solution - there are other calls to rrd_graph
in the code and I have lost the version number/date stamp from the
output, but at least the boss can see the pretty bits.



-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.10-1-686-smp
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages amavis-stats depends on:
ii  adduser                       3.67       Add and remove users and groups
ii  debconf [debconf-2.0]         1.4.58     Debian configuration management sy
ii  librrds-perl                  1.2.11-0.2 Time-series data storage and displ
ii  php4-rrdtool                  1.04-15    RRD module for php4
ii  rrdtool                       1.2.11-0.2 Time-series data storage and displ
ii  wwwconfig-common              0.0.43     Debian web auto configuration

Versions of packages amavis-stats recommends:
ii  amavisd-new [amavis]       20030616p10-5 Interface between MTA and virus sc

-- debconf information excluded


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to