rtld direct exec: make -u behavior match the description

(cherry picked from commit ef2694f368)
This commit is contained in:
Konstantin Belousov 2024-04-28 23:57:54 +03:00
parent 10484ee13a
commit e45b440633

View file

@ -6233,7 +6233,10 @@ parse_args(char* argv[], int argc, bool *use_pathp, int *fdp,
} else if (opt == 'p') {
*use_pathp = true;
} else if (opt == 'u') {
trust = false;
u_int ll;
for (ll = 0; ll < nitems(ld_env_vars); ll++)
ld_env_vars[ll].val = NULL;
} else if (opt == 'v') {
machine[0] = '\0';
mib[0] = CTL_HW;