[sudo-commits] sudo changeset 14730:657aa80f3af8

Todd C. Miller Todd.Miller at sudo.ws
Tue May 2 11:23:34 MDT 2023


changeset:	14730:657aa80f3af8 in /raid/repos/sudo
details:	https://www.sudo.ws/repos/sudo/rev/657aa80f3af8
user:		Todd C. Miller <Todd.Miller at sudo.ws>
date:		Tue May 02 10:47:47 2023 -0600

Log Message:
	Make sudoers_file private to policy.c and visudo.c.

	We just need a way for the policy (and visudo) to override the
	default sudoers path.  This adds a getter to be used in file.c when
	sudoers is first opened.

diffstat:

 plugins/sudoers/file.c    |    2 +-
 plugins/sudoers/policy.c  |   13 ++-
 plugins/sudoers/sudoers.h |    2 +-
 plugins/sudoers/toke.c    |  195 ++++++++++++++++++++++-----------------------
 plugins/sudoers/toke.l    |    3 +-
 plugins/sudoers/visudo.c  |   21 ++--
 6 files changed, 121 insertions(+), 115 deletions(-)



More information about the sudo-commits mailing list