Move SUDOERS_QUOTED define to parse.h

This commit is contained in:
Todd C. Miller
2018-02-02 06:28:04 -07:00
parent 07d9cec271
commit f4ce2b25fc
2 changed files with 4 additions and 4 deletions

View File

@@ -38,9 +38,6 @@
#include "sudo_lbuf.h" #include "sudo_lbuf.h"
#include <gram.h> #include <gram.h>
/* Characters that must be quoted in sudoers */
#define SUDOERS_QUOTED ":\\,=#\""
/* /*
* Local prototypes. * Local prototypes.
*/ */
@@ -844,7 +841,7 @@ done:
} }
/* /*
* Print the contents of a struct member to stdout * Write the contents of a struct member to the lbuf
*/ */
static void static void
print_member_int(struct sudo_lbuf *lbuf, char *name, int type, int negated, print_member_int(struct sudo_lbuf *lbuf, char *name, int type, int negated,

View File

@@ -18,6 +18,9 @@
#ifndef SUDOERS_PARSE_H #ifndef SUDOERS_PARSE_H
#define SUDOERS_PARSE_H #define SUDOERS_PARSE_H
/* Characters that must be quoted in sudoers */
#define SUDOERS_QUOTED ":\\,=#\""
#undef UNSPEC #undef UNSPEC
#define UNSPEC -1 #define UNSPEC -1
#undef DENY #undef DENY