Package: amavis-stats Version: 0.1.12-7.3 Severity: important Below is a patch for the changes that I made to make it run on a local system. This bug seems to be a bit related to #473735 though that submitter made other changes and possibly reversed some that I made.
Other info: this is a fresh install for me. Anyway, below are the patches (I had to reinstall to get the original): --- amavis-stats.php-orig 2008-07-19 13:36:59.000000000 -0400 +++ amavis-stats.php-fixed 2008-07-19 13:28:25.000000000 -0400 @@ -639,16 +639,16 @@ addopts($opts, "STACK", $id, $vcount, $virus, $length); } } - $opts[] = "COMMENT:" . str_replace(":", "\:", $enddate) . "\\n"; + //$opts[] = "COMMENT:" . str_replace(":", "\:", $enddate) . "\\n"; } } $opts[] = "COMMENT:\\n"; $opts[] = "COMMENT:amavis-stats v$asVersion "; - $opts[] = "COMMENT:$enddate \\r"; + //$opts[] = "COMMENT:$enddate \\r"; asDbg($opts); - $ret = rrd_graph("/usr/share/amavis-stats/$img" , $opts, count($opts)); + $ret = rrd_graph("$img" , $opts, count($opts)); if (!is_array($ret)) { $err = rrd_error(); @@ -769,7 +769,7 @@ } */ $opts[] = "COMMENT:amavis-stats v$asVersion "; - $opts[] = "COMMENT:$enddate" . str_replace(":", "\:", $enddate) . " \\r"; + //$opts[] = "COMMENT:$enddate" . str_replace(":", "\:", $enddate) . " \\r"; /* * debugging - graph definitions @@ -777,7 +777,7 @@ asDbg($opts); $start = microtime(); - $ret = rrd_graph("/usr/share/amavis-stats/$img" , $opts, count($opts)); + $ret = rrd_graph("$img" , $opts, count($opts)); $t = elapsed($start); if (!is_array($ret)) { $err = rrd_error(); -- System Information: Debian Release: 4.0 APT prefers stable APT policy: (500, 'stable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.18-6-686 Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1) Versions of packages amavis-stats depends on: ii adduser 3.102 Add and remove users and groups ii debconf [debconf-2.0] 1.5.11etch1 Debian configuration management sy ii librrds-perl 1.2.15-0.3 Time-series data storage and displ ii rrdtool 1.2.15-0.3 Time-series data storage and displ ii wwwconfig-common 0.0.48 Debian web auto configuration Versions of packages amavis-stats recommends: ii amavisd-new [amavis] 1:2.4.2-6.1 Interface between MTA and virus sc -- debconf information: * amavis-stats/stay_on_purge: false amavis-stats/config_apache: Apache -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]