diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2020-02-20 16:54:29 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2020-02-20 16:54:29 +0100 |
commit | f977e004cefe46e8010c3d29681d77da50e380a9 (patch) | |
tree | 39c1afc6b44350bd56fe03ed59afb8f4bfae645e /shell/hush_test/hush-parsing/comment1.tests | |
parent | cd24a506336f84ff2bb3318bc4f2f82dd025f318 (diff) | |
download | busybox-f977e004cefe46e8010c3d29681d77da50e380a9.tar.gz |
ash: eval: Only restore exit status on exit/return
Upstream commit:
Date: Fri, 14 Dec 2018 13:52:02 +0800
eval: Only restore exit status on exit/return
We unconditionally restore the saved status in exitreset, which
is incorrect as we only want to do it for exitcmd and returncmd.
This patch fixes the problem by introducing EXEND.
Reported-by: Martijn Dekker <martijn@inlv.org>
Fixes: da30b4b78769 ("[BUILTIN] Exit without arguments in a trap...")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/hush_test/hush-parsing/comment1.tests')
0 files changed, 0 insertions, 0 deletions