pass a copy of argv[i] to NOFORK applets (they may permute it etc).
set/save/restore more shared global variables whan call one applet from another
This commit is contained in:
parent
c98c31783c
commit
831a20f512
5 changed files with 38 additions and 30 deletions
|
@ -3065,7 +3065,6 @@ static const char *rexecve(char *c, char **v, char **envp)
|
|||
char *name = c;
|
||||
|
||||
if (ENABLE_FEATURE_SH_STANDALONE) {
|
||||
optind = 1;
|
||||
if (find_applet_by_name(name)) {
|
||||
/* We have to exec here since we vforked. Running
|
||||
* run_applet_and_exit() won't work and bad things
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue