From d81251712c41107ef666be130ce583582bd975dd Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Thu, 17 Sep 2009 11:13:49 +0200 Subject: [PATCH] hush: pass return code from exit command Signed-off-by: Sascha Hauer --- common/hush.c | 1 + 1 file changed, 1 insertion(+) diff --git a/common/hush.c b/common/hush.c index 9c9725cf0..0ad597721 100644 --- a/common/hush.c +++ b/common/hush.c @@ -1393,6 +1393,7 @@ static int parse_stream_outer(struct p_context *ctx, struct in_str *inp, int fla code = 0; continue; } + code = last_return_code; break; } } else {