--- embedaddon/sudo/plugins/sudoers/linux_audit.c 2012/05/29 12:26:49 1.1.1.2 +++ embedaddon/sudo/plugins/sudoers/linux_audit.c 2013/10/14 07:56:34 1.1.1.5 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2010 Todd C. Miller + * Copyright (c) 2010-2013 Todd C. Miller * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -32,7 +32,7 @@ #include #include "missing.h" -#include "error.h" +#include "fatal.h" #include "alloc.h" #include "gettext.h" #include "sudo_debug.h" @@ -54,7 +54,7 @@ static 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")); + fatal(_("unable to open audit system")); } else { (void)fcntl(au_fd, F_SETFD, FD_CLOEXEC); } @@ -78,8 +78,10 @@ linux_audit_command(char *argv[], int result) command = cp = emalloc(size); 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")); + if (n >= size - (cp - command)) { + fatalx(_("internal error, %s overflow"), + "linux_audit_command()"); + } cp += n; *cp++ = ' '; }