From bac2d8aa5e642a70045e713853b13d020b9c5d57 Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Tue, 5 Sep 2000 16:13:06 +1100 Subject: - (djm) Merge cygwin support from Corinna Vinschen --- sshconnect.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sshconnect.c') diff --git a/sshconnect.c b/sshconnect.c index 21eff6c6..7c47ebe9 100644 --- a/sshconnect.c +++ b/sshconnect.c @@ -243,7 +243,11 @@ ssh_connect(const char *host, struct sockaddr_storage * hostaddr, /* Create a socket for connecting. */ sock = ssh_create_socket(original_real_uid, +#ifdef HAVE_CYGWIN + !anonymous && port < IPPORT_RESERVED, +#else !anonymous && geteuid() == 0 && port < IPPORT_RESERVED, +#endif ai->ai_family); if (sock < 0) continue; -- cgit v1.2.1