mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 06:15:37 +00:00
No need to have version macros for hooks, callbacks and the sudoers
group plugin. We can just use the main sudo API macros. The sudoers group plugin macros are preserved for source compatibility but are not documented.
This commit is contained in:
@@ -62,10 +62,10 @@ sample_init(int version, sudo_printf_t sudo_printf, char *const argv[])
|
||||
|
||||
sudo_log = sudo_printf;
|
||||
|
||||
if (GROUP_API_VERSION_GET_MAJOR(version) != GROUP_API_VERSION_MAJOR) {
|
||||
if (SUDO_API_VERSION_GET_MAJOR(version) != GROUP_API_VERSION_MAJOR) {
|
||||
sudo_log(SUDO_CONV_ERROR_MSG,
|
||||
"group_file: incompatible major version %d, expected %d\n",
|
||||
GROUP_API_VERSION_GET_MAJOR(version),
|
||||
SUDO_API_VERSION_GET_MAJOR(version),
|
||||
GROUP_API_VERSION_MAJOR);
|
||||
return -1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user