File: 01_drraw_cgi.diff

package info (click to toggle)
drraw 2.2b2-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,572 kB
  • sloc: perl: 4,183; sh: 31; makefile: 8
file content (15 lines) | stat: -rw-r--r-- 635 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Description: Changes config file path to /etc/drraw/drraw.conf
Author: Mohammad Ebrahim Mohammadi Panah <ebrahim@mohammadi.ir>
Last-Update: 2010-05-10

--- drraw.upstream/drraw.cgi	2008-12-15 23:57:22.000000000 +0330
+++ drraw/drraw.cgi	2008-12-15 23:31:06.000000000 +0330
@@ -49,7 +49,7 @@
 
 # The configuration file is expected to be found in the same directory
 # as drraw itself.  You may customize this to be elsewhere.
-my $config = (dirname($0) =~ /(.*)/)[0] . "/drraw.conf"; # Untaint
+my $config = "/etc/drraw/drraw.conf"; # Untaint
 
 # This needs to be manually set for stupid stupid File::Find to work
 # in tainted mode.