Revert "hush: fix segfault on syntax error"
authorRabin Vincent <rabin@rab.in>
Fri, 21 Nov 2014 22:05:22 +0000 (23:05 +0100)
committerTom Rini <trini@ti.com>
Mon, 24 Nov 2014 17:06:06 +0000 (12:06 -0500)
commitf3a05c8f944ab2cd832e69a5705708ee7a1797fa
treee2b345315b669ef5855b1737de7628b1c08c1c6c
parentdee332ffb735f65ab922118791a583c17bb0b795
Revert "hush: fix segfault on syntax error"

128059b92 ("hush: fix segfault on syntax error") attempted to fix a
segfault on syntax errors, but it broke Ctrl-C handling, and the
assumption that it made, that rcode could not be -1, is incorrect.
Revert this change.

Reported-by: Stephen Warren <swarren@wwwdotorg.org>
Reported-by: Przemyslaw Marczak <p.marczak@samsung.com>
Signed-off-by: Rabin Vincent <rabin@rab.in>
common/cli_hush.c