From 46d5a7fcea81b489819f753451c1ad2fe435f148 Mon Sep 17 00:00:00 2001 From: Herbert Xu Date: Tue, 27 Mar 2018 00:39:35 +0800 Subject: eval: Restore input files in evalcommand When evalcommand invokes a command that modifies parsefile and then bails out without popping the file, we need to ensure the input file is restored so that the shell can continue to execute. Reported-by: Martijn Dekker Signed-off-by: Herbert Xu --- src/input.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/input.h') diff --git a/src/input.h b/src/input.h index ec97c1d..a9c0517 100644 --- a/src/input.h +++ b/src/input.h @@ -97,5 +97,6 @@ void popstring(void); int setinputfile(const char *, int); void setinputstring(char *); void popfile(void); +void unwindfiles(struct parsefile *); void popallfiles(void); void closescript(void); -- cgit 1.4.1