2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-09-01 06:45:10 +00:00

Wrap error/errorx and warning/warningx functions with debug statements.

Disable wrapping for standalone sudoers programs as well as memory
allocation functions (to avoid infinite recursion).
This commit is contained in:
Todd C. Miller
2011-10-22 14:28:33 -04:00
parent 749a7695d0
commit 9923464d96
7 changed files with 84 additions and 24 deletions

View File

@@ -40,7 +40,7 @@ sigjmp_buf error_jmp;
extern sudo_conv_t sudo_conv;
void
error(int eval, const char *fmt, ...)
error2(int eval, const char *fmt, ...)
{
va_list ap;
@@ -52,7 +52,7 @@ error(int eval, const char *fmt, ...)
}
void
errorx(int eval, const char *fmt, ...)
errorx2(int eval, const char *fmt, ...)
{
va_list ap;
@@ -64,7 +64,7 @@ errorx(int eval, const char *fmt, ...)
}
void
warning(const char *fmt, ...)
warning2(const char *fmt, ...)
{
va_list ap;
@@ -74,7 +74,7 @@ warning(const char *fmt, ...)
}
void
warningx(const char *fmt, ...)
warningx2(const char *fmt, ...)
{
va_list ap;
va_start(ap, fmt);