2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 06:15:37 +00:00

No need for sudoers_cleanup() in sudoers_policy_invalidate().

The sudoers close() function is now called even for "sudo -k".
Also no need to set user_cmnd, it is not used in this code path.
This commit is contained in:
Todd C. Miller
2021-02-16 08:26:49 -07:00
parent d235083342
commit c09169e812

View File

@@ -1066,10 +1066,7 @@ sudoers_policy_invalidate(int unlinkit)
{
debug_decl(sudoers_policy_invalidate, SUDOERS_DEBUG_PLUGIN);
user_cmnd = "kill";
/* XXX - plugin API should support a return value for fatal errors. */
timestamp_remove(unlinkit);
sudoers_cleanup();
debug_return;
}