--- embedaddon/sudo/plugins/sudoers/linux_audit.c 2013/10/14 07:56:34 1.1.1.5 +++ embedaddon/sudo/plugins/sudoers/linux_audit.c 2014/06/15 16:12:54 1.1.1.6 @@ -31,10 +31,12 @@ #include #include +#define DEFAULT_TEXT_DOMAIN "sudoers" +#include "gettext.h" /* must be included before missing.h */ + #include "missing.h" #include "fatal.h" #include "alloc.h" -#include "gettext.h" #include "sudo_debug.h" #include "linux_audit.h" @@ -54,7 +56,7 @@ static linux_audit_open(void) if (au_fd == -1) { /* Kernel may not have audit support. */ if (errno != EINVAL && errno != EPROTONOSUPPORT && errno != EAFNOSUPPORT) - fatal(_("unable to open audit system")); + fatal(U_("unable to open audit system")); } else { (void)fcntl(au_fd, F_SETFD, FD_CLOEXEC); } @@ -79,7 +81,7 @@ linux_audit_command(char *argv[], int result) for (av = argv; *av != NULL; av++) { n = strlcpy(cp, *av, size - (cp - command)); if (n >= size - (cp - command)) { - fatalx(_("internal error, %s overflow"), + fatalx(U_("internal error, %s overflow"), "linux_audit_command()"); } cp += n; @@ -90,7 +92,7 @@ linux_audit_command(char *argv[], int result) /* Log command, ignoring ECONNREFUSED on error. */ rc = audit_log_user_command(au_fd, AUDIT_USER_CMD, command, NULL, result); if (rc <= 0 && errno != ECONNREFUSED) - warning(_("unable to send audit message")); + warning(U_("unable to send audit message")); efree(command);