File: fix-usr-local.patch

package info (click to toggle)
wit 3.01a-5.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 9,468 kB
  • sloc: ansic: 109,416; pascal: 2,205; sh: 1,972; makefile: 770
file content (20 lines) | stat: -rw-r--r-- 650 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Description: Use /usr/share/wit instead of /usr/local/share/wit
 This is hardcoded in the code.
Author: Michael Stapelberg <stapelberg@debian.org>
Last-Update: 2013-07-11

---

Index: wit/src/lib-std.c
===================================================================
--- wit.orig/src/lib-std.c
+++ wit/src/lib-std.c
@@ -547,7 +547,7 @@ void SetupLib ( int argc, char ** argv,
     TRACE("PROC-PATH: %s\n",proc_path);
 
     static char share[] = "/share/wit/";
-    static char local_share[] = "/usr/local/share/wit/";
+    static char local_share[] = "/usr/share/wit/";
 
     char path[PATH_MAX];
     if (readlink(proc_path,path,sizeof(path)))