fix return codes from ruserok
[unix-history] / usr / src / lib / libc / net / rcmd.3
index ed6d0d1..ed4ef5c 100644 (file)
@@ -2,7 +2,7 @@
 .\" All rights reserved.  The Berkeley software License Agreement
 .\" specifies the terms and conditions for redistribution.
 .\"
 .\" All rights reserved.  The Berkeley software License Agreement
 .\" specifies the terms and conditions for redistribution.
 .\"
-.\"    @(#)rcmd.3      6.2 (Berkeley) %G%
+.\"    @(#)rcmd.3      6.3 (Berkeley) %G%
 .\"
 .TH RCMD 3X ""
 .UC 5
 .\"
 .TH RCMD 3X ""
 .UC 5
@@ -105,12 +105,12 @@ and, possibly,
 .I .rhosts
 in the current working directory (normally the local
 user's home directory) to see if the request for
 .I .rhosts
 in the current working directory (normally the local
 user's home directory) to see if the request for
-service is allowed.  A 1 is returned if the machine
+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''
 file; otherwise 
 .I ruserok
 name is listed in the ``hosts.equiv'' file, or the
 host and remote user name are found in the ``.rhosts''
 file; otherwise 
 .I ruserok
-returns 0.  If the
+returns \-1.  If the
 .I superuser
 flag is 1, the checking of the ``host.equiv'' file is
 bypassed.
 .I superuser
 flag is 1, the checking of the ``host.equiv'' file is
 bypassed.