2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 06:15:37 +00:00

Use SUDO_CONV_DEBUG_MSG in the plugin instead of writing

directly to the debug file.
This commit is contained in:
Todd C. Miller
2011-11-13 13:55:19 -05:00
parent f3ae31185b
commit 65b781a2ef
5 changed files with 37 additions and 8 deletions

View File

@@ -94,6 +94,7 @@
#include "alloc.h"
#include "error.h"
#include "gettext.h"
#include "sudo_plugin.h"
#ifndef LINE_MAX
# define LINE_MAX 2048
@@ -172,6 +173,8 @@ struct search_node {
} u;
} *search_expr;
sudo_conv_t sudo_conv; /* NULL in non-plugin */
#define STACK_NODE_SIZE 32
static struct search_node *node_stack[32];
static int stack_top;