Diff for /embedaddon/sudo/plugins/sudoers/audit.c between versions 1.1.1.2 and 1.1.1.3

version 1.1.1.2, 2012/05/29 12:26:49 version 1.1.1.3, 2013/07/22 00:51:38
Line 1 Line 1
 /*  /*
 * Copyright (c) 2009-2010 Todd C. Miller <Todd.Miller@courtesan.com> * Copyright (c) 2009-2012 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 26 Line 26
 #  include <stdlib.h>  #  include <stdlib.h>
 # endif  # endif
 #endif /* STDC_HEADERS */  #endif /* STDC_HEADERS */
   #ifdef HAVE_STDBOOL_H
   # include <stdbool.h>
   #else
   # include "compat/stdbool.h"
   #endif /* HAVE_STDBOOL_H */
 #include <stdarg.h>  #include <stdarg.h>
   
 #include "missing.h"  #include "missing.h"
Line 60  void Line 65  void
 audit_failure(char *exec_args[], char const *const fmt, ...)  audit_failure(char *exec_args[], char const *const fmt, ...)
 {  {
     va_list ap;      va_list ap;
       int oldlocale;
     debug_decl(audit_success, SUDO_DEBUG_AUDIT)      debug_decl(audit_success, SUDO_DEBUG_AUDIT)
   
       /* Audit error messages should be in the sudoers locale. */
       sudoers_setlocale(SUDOERS_LOCALE_SUDOERS, &oldlocale);
   
     if (exec_args != NULL) {      if (exec_args != NULL) {
         va_start(ap, fmt);          va_start(ap, fmt);
 #ifdef HAVE_BSM_AUDIT  #ifdef HAVE_BSM_AUDIT
        bsm_audit_failure(exec_args, fmt, ap);        bsm_audit_failure(exec_args, _(fmt), ap);
 #endif  #endif
 #ifdef HAVE_LINUX_AUDIT  #ifdef HAVE_LINUX_AUDIT
         linux_audit_command(exec_args, 0);          linux_audit_command(exec_args, 0);
 #endif  #endif
         va_end(ap);          va_end(ap);
     }      }
   
       sudoers_setlocale(oldlocale, NULL);
   
     debug_return;      debug_return;
 }  }

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


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