Stop rlogind from bogusly ignoring an explicit .rhosts file for root.

It still correctly ignores hosts.equiv.  This is now consistant with rshd.
This commit is contained in:
Peter Wemm 1995-11-20 23:25:35 +00:00
parent b348eb87ac
commit 2d9cb0580d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=12434

View File

@ -587,10 +587,9 @@ do_rlogin(dest)
pwd = getpwnam(lusername);
if (pwd == NULL)
return (-1);
if (pwd->pw_uid == 0)
return (-1);
/* XXX why don't we syslog() failure? */
return (iruserok(dest->sin_addr.s_addr, 0, rusername, lusername));
return (iruserok(dest->sin_addr.s_addr, pwd->pw_uid == 0,
rusername, lusername));
}
void