diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2008-11-10 17:54:15 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2008-11-10 17:54:15 +0100 |
commit | 8d36379153360e8e93cc17a35a9483103762432d (patch) | |
tree | c77e7e272bf641a396d767f5b8b724e3a6bb000a /common | |
parent | e761b60e25d95826c23ba0ae9744a45eb37cedf5 (diff) | |
download | barebox-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.c | 2 |
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) |