We must include gettext.h before missing.h as it includes system
headers. Also add missing DEFAULT_TEXT_DOMAIN defines in sudoers audit code that does not include sudoers.h.
This commit is contained in:
@@ -33,6 +33,9 @@
|
||||
#endif /* HAVE_STDBOOL_H */
|
||||
#include <stdarg.h>
|
||||
|
||||
#define DEFAULT_TEXT_DOMAIN "sudoers"
|
||||
#include "gettext.h" /* must be included before missing.h */
|
||||
|
||||
#include "missing.h"
|
||||
#include "logging.h"
|
||||
#include "sudo_debug.h"
|
||||
@@ -44,9 +47,6 @@
|
||||
# include "linux_audit.h"
|
||||
#endif
|
||||
|
||||
#define DEFAULT_TEXT_DOMAIN "sudoers"
|
||||
#include "gettext.h"
|
||||
|
||||
void
|
||||
audit_success(char *exec_args[])
|
||||
{
|
||||
|
Reference in New Issue
Block a user