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 1995-11-20 23:25:35 +00:00
parent 76ebea4cd1
commit 2827d00525

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