[sudo-commits] sudo changeset 9516:cc38a8389a7b

Todd C. Miller Todd.Miller at courtesan.com
Tue Jul 8 09:52:26 MDT 2014


changeset:	9516:cc38a8389a7b in /home/hg/sudo
details:	http://www.sudo.ws/repos/sudo/rev/cc38a8389a7b
user:		Todd C. Miller <Todd.Miller at courtesan.com>
date:		Tue Jul 08 09:52:21 2014 -0600

Log Message:
	Add sudo_warn_strerror() that wraps strerror() with calls to
	setlocale() in sudoers so we always get the error string in the
	user's locale.  Also change _warning() to take the error number as
	a parameter instead of examining errno.

diffstat:

 include/fatal.h          |   1 +
 lib/util/fatal.c         |  22 +++++++++++-----------
 lib/util/util.exp        |   1 +
 plugins/sudoers/locale.c |  15 ++++++++++++++-
 src/locale_stub.c        |  15 ++++++++++++++-
 5 files changed, 41 insertions(+), 13 deletions(-)


More information about the sudo-commits mailing list