Diff for /embedaddon/sudo/plugins/sudoers/linux_audit.c between versions 1.1.1.3 and 1.1.1.5

version 1.1.1.3, 2012/10/09 09:29:52 version 1.1.1.5, 2013/10/14 07:56:34
Line 1 Line 1
 /*  /*
 * Copyright (c) 2010 Todd C. Miller <Todd.Miller@courtesan.com> * Copyright (c) 2010-2013 Todd C. Miller <Todd.Miller@courtesan.com>
  *   *
  * Permission to use, copy, modify, and distribute this software for any   * Permission to use, copy, modify, and distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above   * purpose with or without fee is hereby granted, provided that the above
Line 32 Line 32
 #include <libaudit.h>  #include <libaudit.h>
   
 #include "missing.h"  #include "missing.h"
#include "error.h"#include "fatal.h"
 #include "alloc.h"  #include "alloc.h"
 #include "gettext.h"  #include "gettext.h"
 #include "sudo_debug.h"  #include "sudo_debug.h"
Line 54  static linux_audit_open(void) Line 54  static linux_audit_open(void)
     if (au_fd == -1) {      if (au_fd == -1) {
         /* Kernel may not have audit support. */          /* Kernel may not have audit support. */
         if (errno != EINVAL && errno != EPROTONOSUPPORT && errno != EAFNOSUPPORT)          if (errno != EINVAL && errno != EPROTONOSUPPORT && errno != EAFNOSUPPORT)
            error(1, _("unable to open audit system"));            fatal(_("unable to open audit system"));
     } else {      } else {
         (void)fcntl(au_fd, F_SETFD, FD_CLOEXEC);          (void)fcntl(au_fd, F_SETFD, FD_CLOEXEC);
     }      }
Line 79  linux_audit_command(char *argv[], int result) Line 79  linux_audit_command(char *argv[], int result)
     for (av = argv; *av != NULL; av++) {      for (av = argv; *av != NULL; av++) {
         n = strlcpy(cp, *av, size - (cp - command));          n = strlcpy(cp, *av, size - (cp - command));
         if (n >= size - (cp - command)) {          if (n >= size - (cp - command)) {
            errorx(1, _("internal error, %s overflow"),            fatalx(_("internal error, %s overflow"),
                 "linux_audit_command()");                  "linux_audit_command()");
         }          }
         cp += n;          cp += n;

Removed from v.1.1.1.3  
changed lines
  Added in v.1.1.1.5


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>