Expand the user_* (and more) macros to user_ctx.foo.

This commit is contained in:
Todd C. Miller
2023-08-12 10:39:59 -06:00
parent 930ca00252
commit d8b28dad97
34 changed files with 791 additions and 821 deletions

View File

@@ -62,12 +62,12 @@ adt_sudo_common(char *const argv[])
}
/* get the real executable name */
if (user_cmnd != NULL) {
if (strlcpy(cmdpath, (const char *)user_cmnd,
if (user_ctx.cmnd != NULL) {
if (strlcpy(cmdpath, (const char *)user_ctx.cmnd,
sizeof(cmdpath)) >= sizeof(cmdpath)) {
log_warningx(SLOG_NO_STDERR,
_("truncated audit path user_cmnd: %s"),
user_cmnd);
_("truncated audit path user_ctx.cmnd: %s"),
user_ctx.cmnd);
}
} else {
if (strlcpy(cmdpath, argv[0],