[sudo-commits] sudo changeset 9906:b88eb9da5e57

Todd C. Miller Todd.Miller at courtesan.com
Thu Feb 19 14:17:59 MST 2015


changeset:	9906:b88eb9da5e57 in /media/repos/sudo
details:	http://www.sudo.ws/repos/sudo/rev/b88eb9da5e57
user:		Todd C. Miller <Todd.Miller at courtesan.com>
date:		Thu Feb 19 14:17:57 2015 -0700

Log Message:
	Historically, crypt() returned the empty string on error, which
	ensured that crypt("", "") would return "", which supported matcing
	empty encrypted passwords with no additional code.  Some modern
	versions of crypt() (such as glibc) return NULL on error so we need
	an explicit test to match an empty plaintext password and an empty
	encrypted password.

diffstat:

 plugins/sudoers/auth/passwd.c     |  5 ++++-
 plugins/sudoers/auth/secureware.c |  5 +++++
 2 files changed, 9 insertions(+), 1 deletions(-)


More information about the sudo-commits mailing list