The sudoers plugin now defines its own list of debugging subsystem names

and defines.
This commit is contained in:
Todd C. Miller
2014-10-22 13:30:52 -06:00
parent 866cfc4fc3
commit e9914a91b1
62 changed files with 641 additions and 558 deletions

View File

@@ -61,7 +61,7 @@ fill_txt(const char *src, int len, int olen)
{
char *dst;
int h;
debug_decl(fill_txt, SUDO_DEBUG_PARSER, sudoers_debug_instance)
debug_decl(fill_txt, SUDOERS_DEBUG_PARSER, sudoers_debug_instance)
dst = olen ? realloc(sudoerslval.string, olen + len + 1) : malloc(len + 1);
if (dst == NULL) {
@@ -96,7 +96,7 @@ bool
append(const char *src, int len)
{
int olen = 0;
debug_decl(append, SUDO_DEBUG_PARSER, sudoers_debug_instance)
debug_decl(append, SUDOERS_DEBUG_PARSER, sudoers_debug_instance)
if (sudoerslval.string != NULL)
olen = strlen(sudoerslval.string);
@@ -112,7 +112,7 @@ fill_cmnd(const char *src, int len)
{
char *dst;
int i;
debug_decl(fill_cmnd, SUDO_DEBUG_PARSER, sudoers_debug_instance)
debug_decl(fill_cmnd, SUDOERS_DEBUG_PARSER, sudoers_debug_instance)
arg_len = arg_size = 0;
@@ -141,7 +141,7 @@ fill_args(const char *s, int len, int addspace)
{
int new_len;
char *p;
debug_decl(fill_args, SUDO_DEBUG_PARSER, sudoers_debug_instance)
debug_decl(fill_args, SUDOERS_DEBUG_PARSER, sudoers_debug_instance)
if (sudoerslval.command.args == NULL) {
addspace = 0;
@@ -188,7 +188,7 @@ bool
ipv6_valid(const char *s)
{
int nmatch = 0;
debug_decl(ipv6_valid, SUDO_DEBUG_PARSER, sudoers_debug_instance)
debug_decl(ipv6_valid, SUDOERS_DEBUG_PARSER, sudoers_debug_instance)
for (; *s != '\0'; s++) {
if (s[0] == ':' && s[1] == ':') {