Instead of trying to make weak functions work on all platforms,
just use a registration function for a plugin-specific setlocale function. The sudoers version just wraps sudoers_setlocale().
This commit is contained in:
@@ -64,6 +64,7 @@ extern int NewArgc;
|
||||
extern char **NewArgv;
|
||||
#endif
|
||||
|
||||
bool sudoers_warn_setlocale(bool restore, int *cookie);
|
||||
bool sudoers_setlocale(int newlocale, int *prevlocale);
|
||||
int sudoers_getlocale(void);
|
||||
int audit_success(int argc, char *argv[]);
|
||||
|
Reference in New Issue
Block a user