aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-10-09 04:29:27 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-10-09 04:29:27 +0000
commit91712548aee6c2b459b93d026bd91cab41f2bb18 (patch)
treedaac0d7418382b050ccb8673f1da9b92f0d847f0
parent0bb19484e22b14965b7a992ddaba000442301eef (diff)
downloadupstream-91712548aee6c2b459b93d026bd91cab41f2bb18.tar.gz
upstream-91712548aee6c2b459b93d026bd91cab41f2bb18.tar.bz2
upstream-91712548aee6c2b459b93d026bd91cab41f2bb18.zip
fix shell escaping bug in append() function
SVN-Revision: 4981
-rwxr-xr-xopenwrt/package/base-files/default/etc/functions.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/openwrt/package/base-files/default/etc/functions.sh b/openwrt/package/base-files/default/etc/functions.sh
index ce22ed151c..2ce172eb35 100755
--- a/openwrt/package/base-files/default/etc/functions.sh
+++ b/openwrt/package/base-files/default/etc/functions.sh
@@ -25,7 +25,7 @@ append() {
local var="$1"
local value="$2"
local sep="${3:- }"
- eval "export ${var}=\"\${${var}:+\${${var}}${value:+$sep}}$value\""
+ eval "export ${var}=\"\${${var}:+\${${var}}${value:+$sep}}\$value\""
}
reset_cb() {