summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2008-11-10 17:54:15 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2008-11-10 17:54:15 +0100
commit8d36379153360e8e93cc17a35a9483103762432d (patch)
treec77e7e272bf641a396d767f5b8b724e3a6bb000a /common
parente761b60e25d95826c23ba0ae9744a45eb37cedf5 (diff)
downloadbarebox-8d36379153360e8e93cc17a35a9483103762432d.tar.gz
barebox-8d36379153360e8e93cc17a35a9483103762432d.tar.xz
hush: Fix quoting
This patch removes adding of an additional \ when doing echo "\"" which gives \" instead of just " I checked in latest busybox hush and this code is still present there, but it behaves correctly in busybox due to some other code pathes I didn't investigate. If this change has any unwanted side effects feel free to flame on me Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
-rw-r--r--common/hush.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/hush.c b/common/hush.c
index 3624679040..db47e6569c 100644
--- a/common/hush.c
+++ b/common/hush.c
@@ -337,7 +337,7 @@ static void b_free(o_string *o)
*/
static int b_addqchr(o_string *o, int ch, int quote)
{
- if (quote && strchr("*?[\\",ch)) {
+ if (quote && strchr("*?[",ch)) {
int rc;
rc = b_addchr(o, '\\');
if (rc)