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 /sshconnect.c | |
parent | 676092fad0b6edca8f1fe731d7c3a000465a9bef (diff) |
- (djm) Merge cygwin support from Corinna Vinschen <vinschen@cygnus.com>
Diffstat (limited to 'sshconnect.c')
-rw-r--r-- | sshconnect.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sshconnect.c b/sshconnect.c index 21eff6c6b..7c47ebe94 100644 --- a/sshconnect.c +++ b/sshconnect.c | |||
@@ -243,7 +243,11 @@ ssh_connect(const char *host, struct sockaddr_storage * hostaddr, | |||
243 | 243 | ||
244 | /* Create a socket for connecting. */ | 244 | /* Create a socket for connecting. */ |
245 | sock = ssh_create_socket(original_real_uid, | 245 | sock = ssh_create_socket(original_real_uid, |
246 | #ifdef HAVE_CYGWIN | ||
247 | !anonymous && port < IPPORT_RESERVED, | ||
248 | #else | ||
246 | !anonymous && geteuid() == 0 && port < IPPORT_RESERVED, | 249 | !anonymous && geteuid() == 0 && port < IPPORT_RESERVED, |
250 | #endif | ||
247 | ai->ai_family); | 251 | ai->ai_family); |
248 | if (sock < 0) | 252 | if (sock < 0) |
249 | continue; | 253 | continue; |