[sudo-commits] sudo changeset 9907:ef5e366db0d0

Todd C. Miller Todd.Miller at courtesan.com
Thu Feb 19 14:18:16 MST 2015


changeset:	9907:ef5e366db0d0 in /media/repos/sudo
details:	http://www.sudo.ws/repos/sudo/rev/ef5e366db0d0
user:		Todd C. Miller <Todd.Miller at courtesan.com>
date:		Thu Feb 19 14:18:13 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:

 auth/passwd.c     |  5 ++++-
 auth/secureware.c |  4 ++++
 2 files changed, 8 insertions(+), 1 deletions(-)


More information about the sudo-commits mailing list