aboutsummaryrefslogtreecommitdiff
path: root/miscutils/ttysize.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2020-02-16 19:02:22 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2020-02-16 19:24:33 +0100
commite368d851e78a2eb2aee50b8bad29dcc301feec65 (patch)
tree7a047d689cc8fe4c0890ad95fb088ecca8df72c3 /miscutils/ttysize.c
parent4ace38580927b3b402b6b35ab50893dbfd5f77c3 (diff)
downloadbusybox-e368d851e78a2eb2aee50b8bad29dcc301feec65.tar.gz
ash: eval: Use the correct expansion mode for fd redirection
Upstream comment: Date: Mon, 19 Nov 2018 18:00:32 +0800 eval: Use the correct expansion mode for fd redirection It has been reported that echo test >&$EMPTY_VARIABLE causes dash to segfault. This is a symptom of the bigger problem that dash tries to perform pathname expansion as well as field splitting on the word after >& and <&. This is wrong and this patch fixes it to use the same expansions as done on a normal redirection. Reported-by: Andrej Shadura <andrew.shadura@collabora.co.uk> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'miscutils/ttysize.c')
0 files changed, 0 insertions, 0 deletions