[sudo-commits] sudo changeset 8511:9b09d3f63790

Todd C. Miller Todd.Miller at courtesan.com
Sun Nov 25 09:41:48 EST 2012


changeset:	8511:9b09d3f63790 in /home/hg/sudo
details:	http://www.sudo.ws/repos/sudo/rev/9b09d3f63790
user:		Todd C. Miller <Todd.Miller at courtesan.com>
date:		Sun Nov 25 09:34:33 2012 -0500

Log Message:
	Move _sudo_printf from src/conversation.c to common/sudo_printf.c.
	Add sudo_printf function pointer that is initialized to _sudo_printf()
	instead of requiring a sudo_conv function pointer everywhere.  The
	plugin will reset sudo_printf to point to the version passed in via
	the plugin open function.  Now plugin_error.c can just call sudo_printf
	in all cases.  The sudoers binaries no longer need their own version
	of sudo_printf.

diffstat:

 MANIFEST                                              |   1 +
 common/Makefile.in                                    |   7 +-
 common/sudo_debug.c                                   |  43 +++-------
 common/sudo_printf.c                                  |  75 +++++++++++++++++++
 include/error.h                                       |   3 +
 plugins/sudoers/Makefile.in                           |   5 +-
 plugins/sudoers/gram.c                                |  19 +----
 plugins/sudoers/gram.y                                |  19 +----
 plugins/sudoers/iolog.c                               |   6 +-
 plugins/sudoers/plugin_error.c                        |  52 +++---------
 plugins/sudoers/policy.c                              |   6 +-
 plugins/sudoers/regress/check_symbols/check_symbols.c |   2 +-
 plugins/sudoers/regress/iolog_path/check_iolog_path.c |   3 +-
 plugins/sudoers/regress/logging/check_wrap.c          |   4 +-
 plugins/sudoers/regress/parser/check_addr.c           |   4 +-
 plugins/sudoers/regress/parser/check_fill.c           |   5 +-
 plugins/sudoers/sudoers.c                             |   1 -
 plugins/sudoers/sudoreplay.c                          |   2 -
 plugins/sudoers/testsudoers.c                         |  29 -------
 plugins/sudoers/visudo.c                              |  29 -------
 src/Makefile.in                                       |   2 +-
 src/conversation.c                                    |  30 -------
 src/sesh.c                                            |   2 -
 23 files changed, 128 insertions(+), 221 deletions(-)


More information about the sudo-commits mailing list