~ubuntu-branches/ubuntu/oneiric/request-tracker3.8/oneiric-updates

« back to all changes in this revision

Viewing changes to debian/patches/10_rt_confdir.dpatch

  • Committer: Bazaar Package Importer
  • Author(s): Dominic Hargreaves
  • Date: 2011-04-14 18:37:55 UTC
  • mfrom: (7.1.10 sid)
  • Revision ID: james.westby@ubuntu.com-20110414183755-fasurkmlcqq0ouky
Tags: 3.8.10-1
* New upstream release; includes multiple security fixes
  (Closes: #622774):
  - Remote code execution in external custom fields (CVE-2011-1685)
  - Information disclosure via SQL injection (CVE-2011-1686)
  - Information disclosure via search interface (CVE-2011-1687)
  - Information disclosure via directory traversal (CVE-2011-1688)
  - User javascript execution via XSS vulnerability (CVE-2011-1689)
  - Authentication credentials theft (CVE-2011-1690)
* Update Standards-Version (no changes)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /bin/sh /usr/share/dpatch/dpatch-run
2
 
## 10_rt_confdir.dpatch by <sjq@wompom>
3
 
##
4
 
## All lines beginning with `## DP:' are a description of the patch.
5
 
## DP: Correct the system config path of the RT command line tool.
6
 
## DP: <http://issues.bestpractical.com/Ticket/Display.html?id=15372>
7
 
## DP: Applied upstream as 5bc33b2500797724f3391890ad2f78a098bda2de
8
 
 
9
 
@DPATCH@
10
 
diff -urNad trunk~/bin/rt.in trunk/bin/rt.in
11
 
--- trunk~/bin/rt.in    2007-05-23 22:55:33.000000000 +0300
12
 
+++ trunk/bin/rt.in     2007-05-23 22:55:34.000000000 +0300
13
 
@@ -1268,7 +1268,7 @@
14
 
         }
15
 
 
16
 
         # Still nothing? We'll fall back to some likely defaults.
17
 
-        for ("$HOME/$rc", "/etc/rt.conf") {
18
 
+        for ("$HOME/$rc", "@LOCAL_ETC_PATH@/rt.conf") {
19
 
             return parse_config_file($_) if (-r $_);
20
 
         }
21
 
     }
22
 
@@ -1536,7 +1536,8 @@
23
 
     The program looks for configuration directives in a file named .rtrc
24
 
     (or $RTCONFIG; see below) in the current directory, and then in more
25
 
     distant ancestors, until it reaches /. If no suitable configuration
26
 
-    files are found, it will also check for ~/.rtrc and /etc/rt.conf.
27
 
+    files are found, it will also check for ~/.rtrc and 
28
 
+    @RT_ETC_PATH@/rt.conf.
29
 
 
30
 
     Configuration directives:
31