summaryrefslogtreecommitdiffstats
path: root/serverloop.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2002-07-09 16:06:40 +0200
committerBen Lindstrom <mouring@eviladmin.org>2002-07-09 16:06:40 +0200
commit99a4e14fe0615c0f8a404aec0db42feb98451eb9 (patch)
treea69e55b6ceb1aa0ad026ba8c952ba5851cc1431a /serverloop.c
parent[configure.ac] fix libc89 utimes test. Mention default path for (diff)
downloadopenssh-99a4e14fe0615c0f8a404aec0db42feb98451eb9.tar.xz
openssh-99a4e14fe0615c0f8a404aec0db42feb98451eb9.zip
- (bal) NO_IPPORT_RESERVED_CONCEPT used instead of CYGWIN so other platforms
lacking that concept can share it. Patch by vinschen@redhat.com
Diffstat (limited to '')
-rw-r--r--serverloop.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/serverloop.c b/serverloop.c
index 134921355..912f62501 100644
--- a/serverloop.c
+++ b/serverloop.c
@@ -972,8 +972,11 @@ server_input_global_request(int type, u_int32_t seq, void *ctxt)
/* check permissions */
if (!options.allow_tcp_forwarding ||
- no_port_forwarding_flag ||
- (listen_port < IPPORT_RESERVED && pw->pw_uid != 0)) {
+ no_port_forwarding_flag
+#ifndef NO_IPPORT_RESERVED_CONCEPT
+ || (listen_port < IPPORT_RESERVED && pw->pw_uid != 0)
+#endif
+ ) {
success = 0;
packet_send_debug("Server has disabled port forwarding.");
} else {