aboutsummaryrefslogtreecommitdiff
path: root/libexec/rexecd
diff options
context:
space:
mode:
authorPaul Traina <pst@FreeBSD.org>1994-09-30 06:38:43 +0000
committerPaul Traina <pst@FreeBSD.org>1994-09-30 06:38:43 +0000
commit9c484989893852deffc2bce571923b6081c9a9a8 (patch)
tree585e26d673b07c46733c8d708ea8df96a5dbba65 /libexec/rexecd
parentabca603fd2bdc00e71ff63bacb335a472413a1e6 (diff)
Notes
Diffstat (limited to 'libexec/rexecd')
-rw-r--r--libexec/rexecd/rexecd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/rexecd/rexecd.c b/libexec/rexecd/rexecd.c
index 679f540fcf48..5feb8a70d5ba 100644
--- a/libexec/rexecd/rexecd.c
+++ b/libexec/rexecd/rexecd.c
@@ -115,7 +115,6 @@ doit(f, fromp)
char cmdbuf[NCARGS+1], *cp, *namep;
#ifdef SKEY
char *skey_crypt();
- int permit_passwd = authfile(inet_ntoa(fromp->sin_addr));
char user[16], pass[100];
#else /* SKEY */
char user[16], pass[16];
@@ -176,7 +175,8 @@ doit(f, fromp)
endpwent();
if (*pwd->pw_passwd != '\0') {
#ifdef SKEY
- namep = skey_crypt(pass, pwd->pw_passwd, pwd, permit_passwd);
+ namep = skey_crypt(pass, pwd->pw_passwd, pwd,
+ skeyaccess(user, NULL, remote));
#else /* SKEY */
namep = crypt(pass, pwd->pw_passwd);
#endif /* SKEY */