guy%gorodish@Sun.COM (Guy Harris) (01/15/87)
Index: man/man3/rcmd.3 4.3BSD Description: The manual page RCMD(3) claims that "ruserok" looks at the ".rhosts" file in the current directory. This was true in 4.2BSD, but the 4.3BSD version looks for it in the home directory of the local user. Repeat-By: Read the manual, read the code. Fix: *** /arch/4.3/usr/man/man3/rcmd.3 Tue May 27 14:22:02 1986 --- rcmd.3 Wed Jan 14 13:15:12 1987 *************** *** 105,112 **** .I /etc/hosts.equiv and, possibly, .I .rhosts ! in the current working directory (normally the local ! user's home directory) to see if the request for service is allowed. A 0 is returned if the machine name is listed in the ``hosts.equiv'' file, or the host and remote user name are found in the ``.rhosts'' --- 105,111 ---- .I /etc/hosts.equiv and, possibly, .I .rhosts ! in the local user's home directory to see if the request for service is allowed. A 0 is returned if the machine name is listed in the ``hosts.equiv'' file, or the host and remote user name are found in the ``.rhosts'' *************** *** 114,120 **** .I ruserok returns \-1. If the .I superuser ! flag is 1, the checking of the ``host.equiv'' file is bypassed. If the local domain (as obtained from \fIgethostname\fP\|(2)) is the same as the remote domain, only the machine name need be specified. --- 113,119 ---- .I ruserok returns \-1. If the .I superuser ! flag is 1, the checking of the ``hosts.equiv'' file is bypassed. If the local domain (as obtained from \fIgethostname\fP\|(2)) is the same as the remote domain, only the machine name need be specified.