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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user