diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2016-05-28 15:48:31 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2016-05-28 15:48:31 +0000 |
commit | 2ac173a52eb339ae0e57683fccda11321812b945 (patch) | |
tree | 289a3d343fe00a925fa4267794a8fbccdce2861d /lib/libc/net/rcmd.3 | |
parent | 2234732fcceda58fff3005b5b6b06e630c985fda (diff) |
rcmd(3) and rcmdsh(3) use getaddrinfo(3) not gethostbyname(3).
Diffstat (limited to 'lib/libc/net/rcmd.3')
-rw-r--r-- | lib/libc/net/rcmd.3 | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libc/net/rcmd.3 b/lib/libc/net/rcmd.3 index 3bba0bc73d3..b2a5cdea9bb 100644 --- a/lib/libc/net/rcmd.3 +++ b/lib/libc/net/rcmd.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: rcmd.3,v 1.33 2016/05/23 00:12:58 guenther Exp $ +.\" $OpenBSD: rcmd.3,v 1.34 2016/05/28 15:48:30 millert Exp $ .\" .\" Copyright (c) 1983, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -27,7 +27,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd $Mdocdate: May 23 2016 $ +.Dd $Mdocdate: May 28 2016 $ .Dt RCMD 3 .Os .Sh NAME @@ -94,10 +94,10 @@ The function looks up the host .Fa *ahost using -.Xr gethostbyname 3 +.Xr getaddrinfo 3 and, if the host exists, .Fa *ahost -is set to the standard name of the host. +is set to the canonical name of the host. A connection is then established to a server residing at the well-known Internet port .Fa inport . @@ -188,7 +188,7 @@ file; otherwise .Fn ruserok returns \-1. If the local domain (as obtained from -.Xr gethostname 3 ) +.Xr getaddrinfo 3 ) is the same as the remote domain, only the machine name need be specified. .Pp .Fn ruserok |