summaryrefslogtreecommitdiff
path: root/debian/patches/002_script-name.diff
blob: eaacd8371e0487db709ae460f97d49ea9e030307 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: Allows mailgrap to show graph is the script is renamed
Author: Julien Valroff <julien@kirya.net>
Fowrarded: no
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=434486

--- a/mailgraph.cgi
+++ b/mailgraph.cgi
@@ -11,7 +11,7 @@
 my $VERSION = "1.14";
 
 my $host = (POSIX::uname())[1];
-my $scriptname = 'mailgraph.cgi';
+my $scriptname = $ENV{"SCRIPT_NAME"};
 my $xpoints = 540;
 my $points_per_sample = 3;
 my $ypoints = 160;