hush: GETOPT_RESET() _after_ getopts too.
authorDenys Vlasenko <vda.linux@googlemail.com>
Tue, 29 Aug 2017 12:32:17 +0000 (14:32 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 29 Aug 2017 12:32:17 +0000 (14:32 +0200)
commit6016181b68a9e8a9fb99893242851128b6bd5656
tree5aeff977b9cf7b68a32dc7e9efe183a5f7173ba6
parent55af51c66d0dae27d188974820c4a7d53dd0be55
hush: GETOPT_RESET() _after_ getopts too.

NOEXEC'ed applets which use getopt() need this.

function                                             old     new   delta
builtin_getopts                                      403     413     +10

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
include/libbb.h
libbb/getopt32.c
shell/hush.c
shell/shell_common.c