summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'www-client/elinks/files/elinks-po-path.patch')
-rw-r--r--www-client/elinks/files/elinks-po-path.patch34
1 files changed, 0 insertions, 34 deletions
diff --git a/www-client/elinks/files/elinks-po-path.patch b/www-client/elinks/files/elinks-po-path.patch
deleted file mode 100644
index ce4305de6d9b..000000000000
--- a/www-client/elinks/files/elinks-po-path.patch
+++ /dev/null
@@ -1,34 +0,0 @@
-From: Jonas Fonseca <fonseca@diku.dk>
-Date: Thu, 3 May 2007 06:46:29 +0000 (+0200)
-Subject: Check if the program path contains "src/" before using ../po files
-X-Git-Tag: elinks-0.11rc0
-X-Git-Url: http://pasky.or.cz/gitweb.cgi?p=elinks.git;a=commitdiff;h=928f364ba2803f98d71775dc03b694d6403c0754
-
-Check if the program path contains "src/" before using ../po files
-
-Don't look for gettext message catalogs in ../po/ unless ELinks is being
-run as src/elinks, ./src/elinks, or .../src/elinks.
-
-Discovered by Arnaud Giersch, this alternate fix (than what is in debian
-package 0.11.1-1.4) closes debian bug #417789 and redhat bug #235411.
-Also reported in: CVE-2007-2027.
-
-Restricting it to only work with --enable-debug was also considered,
-however, it is an important feature for translaters so this less
-paranoid fix was chosen.
----
-
---- a/src/intl/gettext/loadmsgcat.c
-+++ b/src/intl/gettext/loadmsgcat.c
-@@ -212,6 +212,11 @@ add_filename_to_string(struct string *st
- unsigned char *slash = strrchr(program.path, '/');
- size_t dirnamelen = (slash ? slash - program.path + 1 : 0);
-
-+ /* Check if elinks is being run from the source tree. */
-+ if (dirnamelen < 4
-+ || strncmp(program.path + dirnamelen - 4, "src", 3))
-+ return NULL;
-+
- if ((dirnamelen && !add_bytes_to_string(str, program.path, dirnamelen))
- || !add_to_string(str, "../po/")
- || !add_bytes_to_string(str,