From 9c484989893852deffc2bce571923b6081c9a9a8 Mon Sep 17 00:00:00 2001 From: Paul Traina Date: Fri, 30 Sep 1994 06:38:43 +0000 Subject: [PATCH] make rexecd link against skeyaccess, not authfile --- libexec/rexecd/rexecd.c | 4 ++-- 1 file 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 */