Add support for multiple Debug lines per program. Callers may

register arbitrary debug facilities or use built-in defaults.  We
now use separate Debug statements for plugins and programs.
This commit is contained in:
Todd C. Miller
2014-10-22 13:23:05 -06:00
parent a7e724b75d
commit 866cfc4fc3
100 changed files with 1509 additions and 949 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 1996, 1998-2005, 2010-2012
* Copyright (c) 1996, 1998-2005, 2010-2012, 2014
* Todd C. Miller <Todd.Miller@courtesan.com>
*
* Permission to use, copy, modify, and distribute this software for any
@@ -81,7 +81,7 @@ char *
sudo_getepw(const struct passwd *pw)
{
char *epw = NULL;
debug_decl(sudo_getepw, SUDO_DEBUG_AUTH)
debug_decl(sudo_getepw, SUDO_DEBUG_AUTH, sudoers_debug_instance)
/* If there is a function to check for shadow enabled, use it... */
#ifdef HAVE_ISCOMSEC
@@ -148,7 +148,7 @@ done:
void
sudo_setspent(void)
{
debug_decl(sudo_setspent, SUDO_DEBUG_AUTH)
debug_decl(sudo_setspent, SUDO_DEBUG_AUTH, sudoers_debug_instance)
#ifdef HAVE_GETPRPWNAM
setprpwent();
@@ -171,7 +171,7 @@ sudo_setspent(void)
void
sudo_endspent(void)
{
debug_decl(sudo_endspent, SUDO_DEBUG_AUTH)
debug_decl(sudo_endspent, SUDO_DEBUG_AUTH, sudoers_debug_instance)
#ifdef HAVE_GETPRPWNAM
endprpwent();