aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/netrc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/netrc.c b/lib/netrc.c
index e656cf7c6..97a07b88e 100644
--- a/lib/netrc.c
+++ b/lib/netrc.c
@@ -109,7 +109,11 @@ int Curl_parsenetrc(const char *host,
netrc_alloc = TRUE;
}
+#ifdef __CYGWIN__
+ file = fopen(netrcfile, "rt");
+#else
file = fopen(netrcfile, "r");
+#endif
if(netrc_alloc)
free(netrcfile);
if(file) {