From: Todd C. Miller Date: Fri, 2 Feb 2018 13:28:04 +0000 (-0700) Subject: Move SUDOERS_QUOTED define to parse.h X-Git-Tag: SUDO_1_8_23^2~159 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f4ce2b25fc6cf465272908683bf8a425aaebb11e;p=sudo Move SUDOERS_QUOTED define to parse.h --- diff --git a/plugins/sudoers/parse.c b/plugins/sudoers/parse.c index ae6e5c7ce..e1bbbea86 100644 --- a/plugins/sudoers/parse.c +++ b/plugins/sudoers/parse.c @@ -38,9 +38,6 @@ #include "sudo_lbuf.h" #include -/* Characters that must be quoted in sudoers */ -#define SUDOERS_QUOTED ":\\,=#\"" - /* * 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 print_member_int(struct sudo_lbuf *lbuf, char *name, int type, int negated, diff --git a/plugins/sudoers/parse.h b/plugins/sudoers/parse.h index 7bbe21ecd..5e8f4c72d 100644 --- a/plugins/sudoers/parse.h +++ b/plugins/sudoers/parse.h @@ -18,6 +18,9 @@ #ifndef SUDOERS_PARSE_H #define SUDOERS_PARSE_H +/* Characters that must be quoted in sudoers */ +#define SUDOERS_QUOTED ":\\,=#\"" + #undef UNSPEC #define UNSPEC -1 #undef DENY