mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-21 15:45:02 +00:00
Make password checking in ftpd work again.
This commit is contained in:
parent
d0dc9fdb98
commit
0bb6e9ed65
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=17451
@ -30,7 +30,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: ftpd.c,v 1.18 1996/08/04 22:40:35 pst Exp $
|
||||
* $Id: ftpd.c,v 1.19 1996/08/05 00:21:14 pst Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
@ -667,10 +667,10 @@ pass(passwd)
|
||||
#endif
|
||||
#ifdef SKEY
|
||||
rval = strcmp(skey_crypt(passwd, pw->pw_passwd, pw, pwok),
|
||||
passwd);
|
||||
pw->pw_passwd);
|
||||
pwok = 0;
|
||||
#else
|
||||
rval = strcmp(crypt(passwd, pw->passwd), passwd);
|
||||
rval = strcmp(crypt(passwd, pw->passwd), pw->pw_passwd);
|
||||
#endif
|
||||
/* The strcmp does not catch null passwords! */
|
||||
if (*pw->pw_passwd == '\0' ||
|
||||
|
Loading…
Reference in New Issue
Block a user