From 6eb6c3d4f4620fb5718439382ba6667c58f1fb18 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Fri, 10 Jun 2011 21:00:07 +0100 Subject: [PATCH] withlib.in: Fix bashism (`export VAR=VALUE'). For some reason, under `dash', this causes (say) `noip' to work correctly for exactly one level of nesting. An attempt to invoke a nested `noip' results in export: 4: noip.so: bad variable name This appears to be a result of `dash' doing word splitting too early. --- debian/changelog | 6 ++++++ withlib.in | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index f16f09c..b1c2e21 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +preload-hacks (1.0.7) experimental; urgency=low + + * Fix bashism (`export VAR=VALUE') in driver scripts. + + -- Mark Wooding Fri, 10 Jun 2011 20:54:49 +0100 + preload-hacks (1.0.6) experimental; urgency=low * Fix premature strlen(3) call in decode_inet_addr. diff --git a/withlib.in b/withlib.in index 47e19d1..51d6a87 100644 --- a/withlib.in +++ b/withlib.in @@ -1,6 +1,6 @@ #! /bin/sh set -e -export LD_PRELOAD=$LD_PRELOAD${LD_PRELOAD+ }@lib@.so +LD_PRELOAD=${LD_PRELOAD+$LD_PRELOAD }@lib@.so; export LD_PRELOAD [ $# -eq 0 ] && set -- "${SHELL-/bin/sh}" exec "$@" -- 2.11.0