summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorderaadt <>2000-12-21 16:07:37 +0000
committerderaadt <>2000-12-21 16:07:37 +0000
commite13651e9302e115ce2594138de47ff5a8657e14e (patch)
treea4bfdf0c33274b7c42b83e8d11c0c3c0fb3e7e3a
parent348d21c814ad43b05ed8a2111f78394a0fffb7a6 (diff)
downloadopenbsd-e13651e9302e115ce2594138de47ff5a8657e14e.tar.gz
openbsd-e13651e9302e115ce2594138de47ff5a8657e14e.tar.bz2
openbsd-e13651e9302e115ce2594138de47ff5a8657e14e.zip
IPPORT_RESERVED - 1, not 1023
-rw-r--r--src/lib/libc/net/rcmd.36
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/libc/net/rcmd.3 b/src/lib/libc/net/rcmd.3
index 04230ef774..2ec2c88d4a 100644
--- a/src/lib/libc/net/rcmd.3
+++ b/src/lib/libc/net/rcmd.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: rcmd.3,v 1.20 2000/04/18 03:01:33 aaron Exp $ 1.\" $OpenBSD: rcmd.3,v 1.21 2000/12/21 16:07:37 deraadt Exp $
2.\" 2.\"
3.\" Copyright (c) 1983, 1991, 1993 3.\" Copyright (c) 1983, 1991, 1993
4.\" The Regents of the University of California. All rights reserved. 4.\" The Regents of the University of California. All rights reserved.
@@ -175,7 +175,9 @@ address bound to it.
175This socket is suitable for use by 175This socket is suitable for use by
176.Fn rcmd 176.Fn rcmd
177and several other functions. 177and several other functions.
178Privileged Internet ports are those in the range 0 to 1023. 178Privileged Internet ports are those in the range 0 to
179.Va IPPORT_RESERVED - 1 ,
180which happens to be 1023.
179Only the superuser is allowed to bind an address of this sort to a socket. 181Only the superuser is allowed to bind an address of this sort to a socket.
180.Fn rresvport 182.Fn rresvport
181and 183and