summaryrefslogtreecommitdiffstats
path: root/libexec
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1996-08-06 08:43:43 +0000
committerphk <phk@FreeBSD.org>1996-08-06 08:43:43 +0000
commit1be57b96e3de224e4a5897f1c118eeaccff92e5f (patch)
tree5426e48e3092896b11d3c52cb0a0482e5752cd90 /libexec
parent0eba1141e30b067e20ad21832bb771d62fb30fe3 (diff)
downloadFreeBSD-src-1be57b96e3de224e4a5897f1c118eeaccff92e5f.zip
FreeBSD-src-1be57b96e3de224e4a5897f1c118eeaccff92e5f.tar.gz
Make password checking in ftpd work again.
Diffstat (limited to 'libexec')
-rw-r--r--libexec/ftpd/ftpd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c
index 8cf26e4..e82680d 100644
--- a/libexec/ftpd/ftpd.c
+++ b/libexec/ftpd/ftpd.c
@@ -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' ||
OpenPOWER on IntegriCloud