Subject: CVS commit: basesrc/usr.sbin/user
To: None <source-changes@netbsd.org>
From: Alistair G. Crooks <agc@netbsd.org>
List: source-changes
Date: 09/30/2002 13:32:41
Module Name:	basesrc
Committed By:	agc
Date:		Mon Sep 30 10:32:41 UTC 2002

Modified Files:
	basesrc/usr.sbin/user: user.c

Log Message:
Handle PR 18474 in a more safe and scalable fashion - keep a table of
password types, and their associated lengths, and check in useradd or
usermod whether the given encrypted password has the correct length.

This removes the (duplicated) hardcoded lengths which had crept in
with the last commit, and also checks the length of the given password
against the expected length.


To generate a diff of this commit:
cvs rdiff -r1.60 -r1.61 basesrc/usr.sbin/user/user.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.