Add struct sudoers_runas_context and move runas-specific bits into it.

This commit is contained in:
Todd C. Miller
2023-08-12 14:20:30 -06:00
parent d8b28dad97
commit a321e6cedf
26 changed files with 386 additions and 356 deletions

View File

@@ -133,8 +133,8 @@ get_hostname(void)
if (user_ctx.host == NULL)
sudo_fatalx(U_("%s: %s"), __func__, U_("unable to allocate memory"));
}
user_ctx.runhost = user_ctx.host;
user_ctx.srunhost = user_ctx.shost;
runas_ctx.host = user_ctx.host;
runas_ctx.shost = user_ctx.shost;
debug_return;
}