Fix test-auxval typos hidden by platform dependence
This commit is contained in:

committed by
Nico Williams

parent
122cdc578e
commit
2d968c5c88
@@ -49,8 +49,8 @@ check_secure_getenv(char **env)
|
|||||||
size_t i;
|
size_t i;
|
||||||
char *v;
|
char *v;
|
||||||
|
|
||||||
for (i = 0; environ[i] != NULL; i++) {
|
for (i = 0; env[i] != NULL; i++) {
|
||||||
if (strchr(environ[i], '=') == NULL)
|
if (strchr(env[i], '=') == NULL)
|
||||||
continue;
|
continue;
|
||||||
if ((v = strdup(env[i])) == NULL)
|
if ((v = strdup(env[i])) == NULL)
|
||||||
err(1, "could not allocate copy of %s", env[i]);
|
err(1, "could not allocate copy of %s", env[i]);
|
||||||
@@ -103,7 +103,7 @@ inject_suid(int suid)
|
|||||||
|
|
||||||
return;
|
return;
|
||||||
#else
|
#else
|
||||||
warnx(1, "No ELF auxv types to inject");
|
warnx("No ELF auxv types to inject");
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user