From 24f8e62e7522cf1204964f836e3c7c269e7b34ae Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Tue, 6 Mar 2018 15:59:31 -0700 Subject: [PATCH] Update copyright date, remove unneeded include and add a few comments. --- plugins/sudoers/testsudoers.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) 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. */ -- 2.40.0