From 2d9cb0580ddcf19cf8bb2ad1e0cf4a3ff0374f81 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Mon, 20 Nov 1995 23:25:35 +0000 Subject: [PATCH] Stop rlogind from bogusly ignoring an explicit .rhosts file for root. It still correctly ignores hosts.equiv. This is now consistant with rshd. --- libexec/rlogind/rlogind.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libexec/rlogind/rlogind.c b/libexec/rlogind/rlogind.c index b93f1ed73f4..f7198ea7684 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