File: remove-hackish-gettext-function

package info (click to toggle)
ldm 2%3A2.2.18-2%2Bdeb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,456 kB
  • sloc: ansic: 4,595; sh: 286; python: 259; makefile: 112; sed: 16
file content (31 lines) | stat: -rw-r--r-- 965 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
21
22
23
24
25
26
27
28
29
30
31
#! /bin/sh /usr/share/dpatch/dpatch-run
## remove-hackish-gettext-function.dpatch by Vagrant Cascadian <vagrant@freegeek.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: always use gettext.sh, rather than our own hackish and buggy
## DP: implementation, which may have security issues.

@DPATCH@
Index: ldm-trunk/share/ldm-script.in
===================================================================
--- ldm-trunk.orig/share/ldm-script.in	2012-04-02 13:22:31.963008519 -0700
+++ ldm-trunk/share/ldm-script.in	2012-04-13 08:05:38.170045995 -0700
@@ -34,17 +34,7 @@
 
 export TEXTDOMAIN=ldmrc
 
-if [ -f /usr/bin/gettext.sh ]; then
-    . /usr/bin/gettext.sh
-else
-    eval_gettext() {
-        if [ $"test" = "\$test" ]; then
-            eval "echo $*"
-        else
-            echo $"$*"
-        fi
-    }
-fi
+. /usr/bin/gettext.sh
 
 # source ltsp client functions
 if [ -f "/usr/share/ltsp/ltsp-client-functions" ]; then