diff options
author | Damien Miller <djm@mindrot.org> | 2000-09-05 16:13:06 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2000-09-05 16:13:06 +1100 |
commit | bac2d8aa5e642a70045e713853b13d020b9c5d57 (patch) | |
tree | 98ddc81efce2273b3dfaff03b51242c988d30abf /readconf.c | |
parent | 676092fad0b6edca8f1fe731d7c3a000465a9bef (diff) |
- (djm) Merge cygwin support from Corinna Vinschen <vinschen@cygnus.com>
Diffstat (limited to 'readconf.c')
-rw-r--r-- | readconf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/readconf.c b/readconf.c index f31b1c4e6..c9e0f5944 100644 --- a/readconf.c +++ b/readconf.c | |||
@@ -174,9 +174,11 @@ add_local_forward(Options *options, u_short port, const char *host, | |||
174 | u_short host_port) | 174 | u_short host_port) |
175 | { | 175 | { |
176 | Forward *fwd; | 176 | Forward *fwd; |
177 | #ifndef HAVE_CYGWIN | ||
177 | extern uid_t original_real_uid; | 178 | extern uid_t original_real_uid; |
178 | if (port < IPPORT_RESERVED && original_real_uid != 0) | 179 | if (port < IPPORT_RESERVED && original_real_uid != 0) |
179 | fatal("Privileged ports can only be forwarded by root.\n"); | 180 | fatal("Privileged ports can only be forwarded by root.\n"); |
181 | #endif | ||
180 | if (options->num_local_forwards >= SSH_MAX_FORWARDS_PER_DIRECTION) | 182 | if (options->num_local_forwards >= SSH_MAX_FORWARDS_PER_DIRECTION) |
181 | fatal("Too many local forwards (max %d).", SSH_MAX_FORWARDS_PER_DIRECTION); | 183 | fatal("Too many local forwards (max %d).", SSH_MAX_FORWARDS_PER_DIRECTION); |
182 | fwd = &options->local_forwards[options->num_local_forwards++]; | 184 | fwd = &options->local_forwards[options->num_local_forwards++]; |