[sudo-commits] sudo changeset 11651:2af6dfb31a49

Todd C. Miller Todd.Miller at sudo.ws
Sun Jan 20 07:51:42 MST 2019


changeset:	11651:2af6dfb31a49 in /raid/repos/sudo
details:	https://www.sudo.ws/repos/sudo/rev/2af6dfb31a49
user:		Todd C. Miller <Todd.Miller at sudo.ws>
date:		Sun Jan 20 07:49:48 2019 -0700

Log Message:
	Minor snprintf() usage tweaks:
	1) don't assume snprintf() returns -1 on error, check for <0
	2) when comparing return value of sizeof(foo), cast the sizeof, not the len
	3) cast return value to void in cases where snprintf cannot fail

diffstat:

 lib/util/regress/vsyslog/vsyslog_test.c |    8 +-
 lib/util/sig2str.c                      |    4 +-
 plugins/sudoers/alias.c                 |    8 +-
 plugins/sudoers/cvtsudoers_pwutil.c     |    8 +-
 plugins/sudoers/env.c                   |    6 +-
 plugins/sudoers/find_path.c             |    6 +-
 plugins/sudoers/fmtsudoers.c            |    8 +-
 plugins/sudoers/group_plugin.c          |    4 +-
 plugins/sudoers/iolog.c                 |   12 +-
 plugins/sudoers/ldap.c                  |    4 +-
 plugins/sudoers/ldap_conf.c             |    4 +-
 plugins/sudoers/ldap_util.c             |    4 +-
 plugins/sudoers/logging.c               |    4 +-
 plugins/sudoers/match.c                 |    4 +-
 plugins/sudoers/parse.c                 |   10 +-
 plugins/sudoers/set_perms.c             |  103 +++++++++++++++++--------------
 plugins/sudoers/starttime.c             |    6 +-
 plugins/sudoers/sudoers.c               |    4 +-
 plugins/sudoers/sudoreplay.c            |    8 +-
 plugins/sudoers/timestamp.c             |    6 +-
 plugins/sudoers/tsdump.c                |    4 +-
 src/exec_monitor.c                      |   12 +-
 src/exec_nopty.c                        |    8 +-
 src/exec_pty.c                          |   10 +-
 src/sudo.c                              |    4 +-
 src/ttyname.c                           |    4 +-
 26 files changed, 139 insertions(+), 124 deletions(-)


More information about the sudo-commits mailing list