From: Todd C. Miller Date: Tue, 6 Mar 2018 22:59:31 +0000 (-0700) Subject: Update copyright date, remove unneeded include and add a few comments. X-Git-Tag: SUDO_1_8_23^2~80 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=24f8e62e7522cf1204964f836e3c7c269e7b34ae;p=sudo Update copyright date, remove unneeded include and add a few comments. --- diff --git a/plugins/sudoers/testsudoers.c b/plugins/sudoers/testsudoers.c index ff99ff328..48bc999b3 100644 --- a/plugins/sudoers/testsudoers.c +++ b/plugins/sudoers/testsudoers.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 1996, 1998-2005, 2007-2016 + * Copyright (c) 1996, 1998-2005, 2007-2018 * Todd C. Miller * * Permission to use, copy, modify, and distribute this software for any @@ -52,12 +52,6 @@ #include "sudo_lbuf.h" #include -#ifdef HAVE_FNMATCH -# include -#else -# include "compat/fnmatch.h" -#endif /* HAVE_FNMATCH */ - #ifndef YYDEBUG # define YYDEBUG 0 #endif @@ -73,6 +67,7 @@ static bool cb_runas_default(const union sudo_defs_val *); static int testsudoers_error(const char *msg); static int testsudoers_output(const char *buf); +/* tsgetgrpw.c */ extern void setgrfile(const char *); extern void setgrent(void); extern void endgrent(void); @@ -86,6 +81,7 @@ extern struct passwd *getpwent(void); extern struct passwd *getpwnam(const char *); extern struct passwd *getpwuid(uid_t); +/* gram.y */ extern int (*trace_print)(const char *msg); /* @@ -132,6 +128,7 @@ main(int argc, char *argv[]) bindtextdomain("sudoers", LOCALEDIR); /* XXX - should have own domain */ textdomain("sudoers"); + /* No word wrap on output. */ sudo_lbuf_init(&lbuf, testsudoers_output, 0, NULL, 0); /* Initialize the debug subsystem. */