Oh thank you. Totally right. A classic "not seeing the forest for the trees". I will provide a patch set with other potential changes that are coming in.
On April 7, 2025 3:26:00 PM GMT+02:00, "Csókás Bence" <[email protected]> wrote: >Hi, > >On 2025. 04. 07. 12:08, Marc Kewitz wrote: >> +// inspired by GNU core utilities env.c >> +static void split_string (char const *str, int *optind, int *argc, char >> ***argv) >> +{ >> + // remember the amount of extra arguments after the string to split >> + int extra_argc = *argc - *optind; >> + // 1 is reserved for the executable name of env >> + int new_argc = extra_argc + 1; >> + int new_ind = new_argc - extra_argc; > >So, just '1'? > >Bence > >_______________________________________________ >busybox mailing list >[email protected] >https://lists.busybox.net/mailman/listinfo/busybox
_______________________________________________ busybox mailing list [email protected] https://lists.busybox.net/mailman/listinfo/busybox
