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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user