#! /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-2.1.2/share/ldm-script.in
===================================================================
--- ldm-2.1.2.orig/share/ldm-script.in	2010-08-05 22:24:51.000000000 -0400
+++ ldm-2.1.2/share/ldm-script.in	2010-08-05 22:27:26.000000000 -0400
@@ -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 common functions
 if [ -f "/usr/share/ltsp/ltsp-common-functions" ]; then
