struct eventlog: rename argv/env to runargv/runenv.

This matches the JSON logs.
This commit is contained in:
Todd C. Miller
2023-10-21 19:15:46 -06:00
parent c7a61a9438
commit 726b646b48
13 changed files with 67 additions and 65 deletions

View File

@@ -989,7 +989,8 @@ init_vars(struct sudoers_context *ctx, char * const envp[])
#define MATCHES(s, v) \
(strncmp((s), (v), sizeof(v) - 1) == 0 && (s)[sizeof(v) - 1] != '\0')
for (ep = envp; *ep; ep++) {
ctx->user.envp = envp;
for (ep = ctx->user.envp; *ep; ep++) {
switch (**ep) {
case 'K':
if (MATCHES(*ep, "KRB5CCNAME="))