ash: make popfile() anfter popallfiles() safe
authorDenys Vlasenko <vda.linux@googlemail.com>
Sun, 30 Oct 2016 17:27:14 +0000 (18:27 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 30 Oct 2016 17:27:14 +0000 (18:27 +0100)
commit493b9cae808093ff5d89b5fb794e3991859e7df6
tree05b59197059c377c39dbacef3cc7238843e080ca
parent9db74e49e5b462089c6eec0182d819c0d4708e57
ash: make popfile() anfter popallfiles() safe

In this example:

ash -c 'readonly x; echo $(command eval x=2)'

evalstring() is called after forkchild(), which calls popallfiles().
On exception, evalstring() will popfile().

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/ash.c