[sudo-commits] sudo changeset 12437:72cbeae218e7

Todd C. Miller Todd.Miller at sudo.ws
Mon May 18 09:01:33 MDT 2020


changeset:	12437:72cbeae218e7 in /raid/repos/sudo
details:	https://www.sudo.ws/repos/sudo/rev/72cbeae218e7
user:		Todd C. Miller <Todd.Miller at sudo.ws>
date:		Mon May 18 06:47:04 2020 -0600

Log Message:
	We no longer need to include headers we don't use for sudo*.h files.
	Previously we needed to include headers required by the various
	sudo*h files.  Now those files are more self-sufficient and we
	should only include headers needed by code in the various .c files.

diffstat:

 lib/iolog/host_port.c                                     |    4 -
 lib/iolog/iolog_fileio.c                                  |    3 -
 lib/iolog/iolog_json.c                                    |    2 -
 lib/iolog/iolog_path.c                                    |    3 -
 lib/iolog/iolog_util.c                                    |    1 -
 lib/iolog/regress/host_port/host_port_test.c              |    1 -
 lib/iolog/regress/iolog_json/check_iolog_json.c           |    1 -
 lib/iolog/regress/iolog_path/check_iolog_path.c           |    1 -
 lib/iolog/regress/iolog_util/check_iolog_util.c           |    1 -
 lib/util/aix.c                                            |    1 -
 lib/util/arc4random.c                                     |    2 -
 lib/util/arc4random_buf.c                                 |    1 -
 lib/util/arc4random_uniform.c                             |    1 -
 lib/util/cfmakeraw.c                                      |    1 -
 lib/util/closefrom.c                                      |    6 +-
 lib/util/digest.c                                         |   10 -
 lib/util/digest_gcrypt.c                                  |    5 -
 lib/util/digest_openssl.c                                 |   11 -
 lib/util/dup3.c                                           |    2 -
 lib/util/event_poll.c                                     |   18 +-
 lib/util/event_select.c                                   |    8 -
 lib/util/fatal.c                                          |    2 -
 lib/util/fchmodat.c                                       |    2 -
 lib/util/fnmatch.c                                        |    3 -
 lib/util/fstatat.c                                        |    2 -
 lib/util/getaddrinfo.c                                    |    1 -
 lib/util/getcwd.c                                         |   11 +-
 lib/util/getdelim.c                                       |    2 -
 lib/util/getgrouplist.c                                   |    2 -
 lib/util/gethostname.c                                    |    2 -
 lib/util/getopt_long.c                                    |    2 -
 lib/util/gettime.c                                        |    5 -
 lib/util/getusershell.c                                   |    4 -
 lib/util/gidlist.c                                        |    3 -
 lib/util/glob.c                                           |    1 -
 lib/util/isblank.c                                        |    2 -
 lib/util/json.c                                           |    5 -
 lib/util/key_val.c                                        |    3 -
 lib/util/lbuf.c                                           |    3 -
 lib/util/locking.c                                        |    2 -
 lib/util/logfac.c                                         |    3 -
 lib/util/logpri.c                                         |    3 -
 lib/util/memset_s.c                                       |    1 -
 lib/util/mkdir_parents.c                                  |    3 -
 lib/util/mksiglist.c                                      |    3 -
 lib/util/mksigname.c                                      |    3 -
 lib/util/mktemp.c                                         |    3 -
 lib/util/openat.c                                         |    2 -
 lib/util/parseln.c                                        |    3 -
 lib/util/pipe2.c                                          |    2 -
 lib/util/progname.c                                       |    2 -
 lib/util/pw_dup.c                                         |    3 -
 lib/util/reallocarray.c                                   |    1 -
 lib/util/regress/fnmatch/fnm_test.c                       |    1 -
 lib/util/regress/getgrouplist/getgrouplist_test.c         |    1 -
 lib/util/regress/glob/globtest.c                          |    1 -
 lib/util/regress/mktemp/mktemp_test.c                     |    3 -
 lib/util/regress/parse_gids/parse_gids_test.c             |    6 -
 lib/util/regress/progname/progname_test.c                 |    6 -
 lib/util/regress/strsig/strsig_test.c                     |    6 -
 lib/util/regress/strsplit/strsplit_test.c                 |    6 -
 lib/util/regress/strtofoo/strtobool_test.c                |    1 -
 lib/util/regress/strtofoo/strtoid_test.c                  |    1 -
 lib/util/regress/strtofoo/strtomode_test.c                |    1 -
 lib/util/regress/strtofoo/strtonum_test.c                 |    1 -
 lib/util/regress/sudo_conf/conf_test.c                    |    6 -
 lib/util/regress/sudo_parseln/parseln_test.c              |    6 -
 lib/util/regress/tailq/hltq_test.c                        |    6 -
 lib/util/regress/vsyslog/vsyslog_test.c                   |    6 -
 lib/util/roundup.c                                        |    2 -
 lib/util/secure_path.c                                    |    4 -
 lib/util/setgroups.c                                      |    2 -
 lib/util/sha2.c                                           |    3 -
 lib/util/sig2str.c                                        |    4 -
 lib/util/snprintf.c                                       |    1 -
 lib/util/str2sig.c                                        |    4 -
 lib/util/strlcat.c                                        |    1 -
 lib/util/strlcpy.c                                        |    2 +-
 lib/util/strndup.c                                        |    2 -
 lib/util/strsignal.c                                      |    3 -
 lib/util/strsplit.c                                       |    7 -
 lib/util/strtobool.c                                      |    4 -
 lib/util/strtoid.c                                        |    9 +-
 lib/util/strtomode.c                                      |    2 -
 lib/util/strtonum.c                                       |   11 -
 lib/util/sudo_conf.c                                      |    1 -
 lib/util/sudo_debug.c                                     |    1 -
 lib/util/sudo_dso.c                                       |    2 -
 lib/util/term.c                                           |    1 -
 lib/util/ttysize.c                                        |    2 -
 lib/util/unlinkat.c                                       |    2 -
 lib/util/utimens.c                                        |    2 -
 lib/util/uuid.c                                           |    1 -
 plugins/audit_json/audit_json.c                           |    3 -
 plugins/group_file/getgrent.c                             |    2 -
 plugins/group_file/group_file.c                           |    4 -
 plugins/group_file/plugin_test.c                          |    3 -
 plugins/python/regress/testhelpers.h                      |    2 -
 plugins/python/sudo_python_debug.h                        |    1 -
 plugins/sample/sample_plugin.c                            |    4 +-
 plugins/sample_approval/sample_approval.c                 |    3 -
 plugins/sudoers/alias.c                                   |    2 -
 plugins/sudoers/audit.c                                   |    3 +-
 plugins/sudoers/base64.c                                  |   10 -
 plugins/sudoers/boottime.c                                |    7 +-
 plugins/sudoers/bsm_audit.c                               |    4 +-
 plugins/sudoers/check.c                                   |    3 +-
 plugins/sudoers/cvtsudoers.c                              |    2 -
 plugins/sudoers/cvtsudoers_json.c                         |    2 -
 plugins/sudoers/cvtsudoers_ldif.c                         |    1 -
 plugins/sudoers/cvtsudoers_pwutil.c                       |    1 -
 plugins/sudoers/defaults.c                                |    2 -
 plugins/sudoers/digestname.c                              |    3 -
 plugins/sudoers/editor.c                                  |    1 -
 plugins/sudoers/env.c                                     |    2 -
 plugins/sudoers/env_pattern.c                             |    1 -
 plugins/sudoers/file.c                                    |   12 -
 plugins/sudoers/filedigest.c                              |    7 -
 plugins/sudoers/find_path.c                               |    1 -
 plugins/sudoers/fmtsudoers.c                              |    1 -
 plugins/sudoers/gc.c                                      |    3 -
 plugins/sudoers/gentime.c                                 |    1 -
 plugins/sudoers/getdate.c                                 |   85 ++--
 plugins/sudoers/getdate.y                                 |    1 -
 plugins/sudoers/getspwuid.c                               |    3 -
 plugins/sudoers/gmtoff.c                                  |    2 -
 plugins/sudoers/goodpath.c                                |    2 -
 plugins/sudoers/gram.c                                    |  214 ++++++-------
 plugins/sudoers/gram.y                                    |    6 -
 plugins/sudoers/group_plugin.c                            |    3 -
 plugins/sudoers/hexchar.c                                 |    3 -
 plugins/sudoers/interfaces.c                              |    1 -
 plugins/sudoers/iolog_client.c                            |    5 -
 plugins/sudoers/iolog_path_escapes.c                      |    3 -
 plugins/sudoers/ldap_conf.c                               |    3 -
 plugins/sudoers/linux_audit.c                             |    1 -
 plugins/sudoers/locale.c                                  |    1 -
 plugins/sudoers/logging.c                                 |    3 -
 plugins/sudoers/logwrap.c                                 |    1 -
 plugins/sudoers/match.c                                   |    1 -
 plugins/sudoers/match_command.c                           |    1 -
 plugins/sudoers/match_digest.c                            |    2 -
 plugins/sudoers/parse.c                                   |    3 -
 plugins/sudoers/parse_ldif.c                              |    1 -
 plugins/sudoers/prompt.c                                  |    2 -
 plugins/sudoers/pwutil.c                                  |    3 -
 plugins/sudoers/pwutil_impl.c                             |    1 -
 plugins/sudoers/rcstr.c                                   |    8 -
 plugins/sudoers/redblack.c                                |    2 -
 plugins/sudoers/regress/check_symbols/check_symbols.c     |    1 -
 plugins/sudoers/regress/env_match/check_env_pattern.c     |    3 -
 plugins/sudoers/regress/iolog_plugin/check_iolog_plugin.c |    2 -
 plugins/sudoers/regress/logging/check_wrap.c              |    1 -
 plugins/sudoers/regress/parser/check_addr.c               |    3 -
 plugins/sudoers/regress/parser/check_base64.c             |    6 -
 plugins/sudoers/regress/parser/check_digest.c             |   12 -
 plugins/sudoers/regress/parser/check_fill.c               |    3 -
 plugins/sudoers/regress/parser/check_gentime.c            |    1 -
 plugins/sudoers/regress/parser/check_hexchar.c            |    6 -
 plugins/sudoers/regress/starttime/check_starttime.c       |    1 -
 plugins/sudoers/set_perms.c                               |    1 -
 plugins/sudoers/solaris_audit.c                           |    4 +-
 plugins/sudoers/sssd.c                                    |   10 +-
 plugins/sudoers/strlist.c                                 |    2 -
 plugins/sudoers/stubs.c                                   |    2 -
 plugins/sudoers/sudo_nss.c                                |    6 -
 plugins/sudoers/sudo_printf.c                             |    2 -
 plugins/sudoers/sudoers.c                                 |    2 -
 plugins/sudoers/sudoers_debug.c                           |    8 -
 plugins/sudoers/sudoreplay.c                              |    2 +-
 plugins/sudoers/testsudoers.c                             |   10 +-
 plugins/sudoers/timeout.c                                 |    2 -
 plugins/sudoers/timestamp.c                               |    2 -
 plugins/sudoers/timestr.c                                 |    3 -
 plugins/sudoers/toke_util.c                               |    3 -
 plugins/sudoers/tsdump.c                                  |    2 -
 plugins/sudoers/tsgetgrpw.c                               |    2 -
 plugins/sudoers/visudo.c                                  |    1 -
 plugins/system_group/system_group.c                       |    9 -
 src/conversation.c                                        |    1 -
 src/copy_file.c                                           |    3 -
 src/env_hooks.c                                           |    3 -
 src/exec.c                                                |    2 -
 src/exec_common.c                                         |    3 -
 src/exec_nopty.c                                          |    1 -
 src/get_pty.c                                             |    3 -
 src/hooks.c                                               |    3 -
 src/limits.c                                              |    3 -
 src/load_plugins.c                                        |    2 -
 src/openbsd.c                                             |   11 -
 src/parse_args.c                                          |    5 -
 src/preload.c                                             |    1 -
 src/preserve_fds.c                                        |    3 -
 src/selinux.c                                             |    1 -
 src/sesh.c                                                |    1 -
 src/signal.c                                              |    5 -
 src/solaris.c                                             |   15 +-
 src/sudo_edit.c                                           |    1 -
 src/tcsetpgrp_nobg.c                                      |    3 -
 src/tgetpass.c                                            |    2 -
 src/utmp.c                                                |    3 -
 201 files changed, 171 insertions(+), 771 deletions(-)


More information about the sudo-commits mailing list