From e13651e9302e115ce2594138de47ff5a8657e14e Mon Sep 17 00:00:00 2001 From: deraadt <> Date: Thu, 21 Dec 2000 16:07:37 +0000 Subject: IPPORT_RESERVED - 1, not 1023 --- src/lib/libc/net/rcmd.3 | 6 ++++-- 1 file 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 @@ -.\" $OpenBSD: rcmd.3,v 1.20 2000/04/18 03:01:33 aaron Exp $ +.\" $OpenBSD: rcmd.3,v 1.21 2000/12/21 16:07:37 deraadt Exp $ .\" .\" Copyright (c) 1983, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -175,7 +175,9 @@ address bound to it. This socket is suitable for use by .Fn rcmd and several other functions. -Privileged Internet ports are those in the range 0 to 1023. +Privileged Internet ports are those in the range 0 to +.Va IPPORT_RESERVED - 1 , +which happens to be 1023. Only the superuser is allowed to bind an address of this sort to a socket. .Fn rresvport and -- cgit v1.2.3-55-g6feb