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

Pass file, line and column to sudoers defaults callbacks.

This commit is contained in:
Todd C. Miller
2022-03-10 13:35:58 -07:00
parent d7ddff2a31
commit 65e5b89f1d
10 changed files with 89 additions and 48 deletions

View File

@@ -142,7 +142,8 @@ sudoers_warn_setlocale(bool restore, int *cookie)
* Callback for sudoers_locale sudoers setting.
*/
bool
sudoers_locale_callback(const union sudo_defs_val *sd_un, int op)
sudoers_locale_callback(const char *file, int line, int column,
const union sudo_defs_val *sd_un, int op)
{
debug_decl(sudoers_locale_callback, SUDOERS_DEBUG_UTIL);