Project

General

Profile

Submit #2695 ยป usr.src.contrib.diff

dclink, 07/04/2014 07:58 AM

View differences:

contrib/opie/opieftpd.c
if (!guest) { /* "ftp" is only account allowed no password */
#endif /* DOANONYMOUS */
i = opieverify(&opiestate, passwd);
if (legit && i && pwok)
i = strcmp(crypt(passwd, pw->pw_passwd), pw->pw_passwd);
if (legit && i && pwok) {
char *pp = crypt(passwd, pw->pw_passwd);
i = (pp ? strcmp(pp, pw->pw_passwd) : 0);
}
if (!legit || i) {
reply(530, "Login incorrect.");
pw = NULL;
contrib/opie/opielogin.c
} else {
if (authsok & 2) {
pp = crypt(buf, thisuser.pw_passwd);
invalid = strcmp(pp, thisuser.pw_passwd);
invalid = (pp ? strcmp(pp, thisuser.pw_passwd) : TRUE);
} else
invalid = TRUE;
}
contrib/tcsh-6/tc.func.c
pp = xgetpass("Password:");
crpp = XCRYPT(pw, pp, srpp);
if ((strcmp(crpp, srpp) == 0)
if (crpp && (strcmp(crpp, srpp) == 0)
#ifdef AFS
|| (ka_UserAuthenticateGeneral(KA_USERAUTH_VERSION,
afsname, /* name */
    (1-1/1)