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>
This commit is contained in:
@@ -425,8 +425,8 @@ shell_builtin_ulimit(char **argv)
|
||||
* ulimit 123 -c2 -l 456
|
||||
*/
|
||||
|
||||
/* In case getopt was already called:
|
||||
* reset the libc getopt() function, which keeps internal state.
|
||||
/* In case getopt() was already called:
|
||||
* reset libc getopt() internal state.
|
||||
*/
|
||||
GETOPT_RESET();
|
||||
|
||||
|
Reference in New Issue
Block a user