#! /bin/sh /usr/share/dpatch/dpatch-run
## 11_collectstats.pl.dpatch by Alexis Sukrieh <sukria@sukria.net>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: The full path to duplicates.cgi

@DPATCH@
diff -urNad bugzilla-2.22~/collectstats.pl bugzilla-2.22/collectstats.pl
--- bugzilla-2.22~/collectstats.pl	2006-08-14 16:23:36.000000000 +0200
+++ bugzilla-2.22/collectstats.pl	2006-08-14 16:24:55.000000000 +0200
@@ -96,7 +96,7 @@
     trick_taint($perl);
 
     # Generate a static RDF file containing the default view of the duplicates data.
-    open(CGI, "$perl -T duplicates.cgi |")
+    open(CGI, "$perl -T /usr/lib/cgi-bin/bugzilla/duplicates.cgi |")
         || die "can't fork duplicates.cgi: $!";
     open(RDF, ">$datadir/duplicates.tmp")
         || die "can't write to $datadir/duplicates.tmp: $!";
