aboutsummaryrefslogtreecommitdiff
path: root/shell/shell_common.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2017-08-29 14:32:17 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2017-08-29 14:32:17 +0200
commit6016181b68a9e8a9fb99893242851128b6bd5656 (patch)
tree5aeff977b9cf7b68a32dc7e9efe183a5f7173ba6 /shell/shell_common.c
parent55af51c66d0dae27d188974820c4a7d53dd0be55 (diff)
downloadbusybox-w32-6016181b68a9e8a9fb99893242851128b6bd5656.tar.gz
busybox-w32-6016181b68a9e8a9fb99893242851128b6bd5656.tar.bz2
busybox-w32-6016181b68a9e8a9fb99893242851128b6bd5656.zip
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>
Diffstat (limited to 'shell/shell_common.c')
-rw-r--r--shell/shell_common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/shell_common.c b/shell/shell_common.c
index 7a0799ed5..c978693f9 100644
--- a/shell/shell_common.c
+++ b/shell/shell_common.c
@@ -425,8 +425,8 @@ shell_builtin_ulimit(char **argv)
425 * ulimit 123 -c2 -l 456 425 * ulimit 123 -c2 -l 456
426 */ 426 */
427 427
428 /* In case getopt was already called: 428 /* In case getopt() was already called:
429 * reset the libc getopt() function, which keeps internal state. 429 * reset libc getopt() internal state.
430 */ 430 */
431 GETOPT_RESET(); 431 GETOPT_RESET();
432 432