mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
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:
parent
b348eb87ac
commit
2d9cb0580d
1 changed files with 2 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue