diff options
author | Dan Harnett <danh@cvs.openbsd.org> | 2001-11-15 20:09:09 +0000 |
---|---|---|
committer | Dan Harnett <danh@cvs.openbsd.org> | 2001-11-15 20:09:09 +0000 |
commit | 80effbf9fc4add39722825b8015eab2017435538 (patch) | |
tree | 5c8002b7e510b34217b2a3aba78f23f10f4d5106 /usr.sbin | |
parent | 96a2e7721ff73693d5910e311e1368bf62118d11 (diff) |
fix password length check; allows usermod -p to work again.
ok millert@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/user/user.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/user/user.c b/usr.sbin/user/user.c index 48100f366f7..54f8b1093ce 100644 --- a/usr.sbin/user/user.c +++ b/usr.sbin/user/user.c @@ -1,4 +1,4 @@ -/* $OpenBSD: user.c,v 1.26 2001/11/08 23:26:45 millert Exp $ */ +/* $OpenBSD: user.c,v 1.27 2001/11/15 20:09:08 danh Exp $ */ /* $NetBSD: user.c,v 1.40 2001/08/17 08:29:00 joda Exp $ */ /* @@ -1022,7 +1022,7 @@ moduser(char *login, char *newlogin, user_t *up) } } if (up->u_flags & F_PASSWORD) { - if (up->u_password != NULL && strlen(up->u_password) == PasswordLength) + if (up->u_password != NULL && strlen(up->u_password) <= PasswordLength) pwp->pw_passwd = up->u_password; } if (up->u_flags & F_UID) { |