Imported Upstream version 1.8.2
[debian/sudo] / plugins / sudoers / linux_audit.c
index 7505f69ca8fe945ea70340452d7c910262006248..e8e25aab287ab3b46048797fc3c15fe84af38ce3 100644 (file)
@@ -34,6 +34,7 @@
 #include "missing.h"
 #include "error.h"
 #include "alloc.h"
+#include "gettext.h"
 #include "linux_audit.h"
 
 /*
@@ -51,7 +52,7 @@ linux_audit_open(void)
     if (au_fd == -1) {
        /* Kernel may not have audit support. */
        if (errno != EINVAL && errno != EPROTONOSUPPORT && errno != EAFNOSUPPORT)
-           error(1, "unable to open audit system");
+           error(1, _("unable to open audit system"));
     } else {
        (void)fcntl(au_fd, F_SETFD, FD_CLOEXEC);
     }
@@ -75,7 +76,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))
-           errorx(1, "internal error, linux_audit_command() overflow");
+           errorx(1, _("internal error, linux_audit_command() overflow"));
        cp += n;
        *cp++ = ' ';
     }
@@ -84,7 +85,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(_("unable to send audit message"));
 
     efree(command);