diff options
author | peter <peter@FreeBSD.org> | 1995-11-20 23:25:35 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1995-11-20 23:25:35 +0000 |
commit | 2827d00525b22d9e0509e6683a5bf42b84582b98 (patch) | |
tree | 90a7d22619e2259b7467372b9f40ca4ef6b54a99 /libexec/rlogind | |
parent | 76ebea4cd12b0a834ea1934b4774732f848e3989 (diff) | |
download | FreeBSD-src-2827d00525b22d9e0509e6683a5bf42b84582b98.zip FreeBSD-src-2827d00525b22d9e0509e6683a5bf42b84582b98.tar.gz |
Stop rlogind from bogusly ignoring an explicit .rhosts file for root.
It still correctly ignores hosts.equiv. This is now consistant with rshd.
Diffstat (limited to 'libexec/rlogind')
-rw-r--r-- | libexec/rlogind/rlogind.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libexec/rlogind/rlogind.c b/libexec/rlogind/rlogind.c index b93f1ed..f7198ea 100644 --- a/libexec/rlogind/rlogind.c +++ b/libexec/rlogind/rlogind.c @@ -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 |