summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2014-09-26 00:31:28 +0200
committerDaniil Baturin <daniil@baturin.org>2014-09-26 00:31:28 +0200
commit54a007421e005e2ca69406541c887cc799a75382 (patch)
treeafca7e026cf9de2b95d7d0d7ae062cae80bf8441
parent10e6adabbf28fece7404093f515ae153469ee5dc (diff)
downloadvyatta-bash-54a007421e005e2ca69406541c887cc799a75382.tar.gz
vyatta-bash-54a007421e005e2ca69406541c887cc799a75382.zip
Another shellshock patch by Chet Ramey.
-rw-r--r--parse.y2
1 files changed, 2 insertions, 0 deletions
diff --git a/parse.y b/parse.y
index 19218fd..d440713 100644
--- a/parse.y
+++ b/parse.y
@@ -2880,6 +2880,8 @@ reset_parser ()
FREE (word_desc_to_read);
word_desc_to_read = (WORD_DESC *)NULL;
+ eol_ungetc_lookahead = 0;
+
current_token = '\n'; /* XXX */
last_read_token = '\n';
token_to_read = '\n';