#include "missing.h"
#include "error.h"
#include "alloc.h"
+#include "gettext.h"
#include "linux_audit.h"
/*
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);
}
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++ = ' ';
}
/* 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);