Commit 33058a1d authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Jay Satiro
Browse files

netrc: Read in text mode when cygwin

Use text mode when cygwin to eliminate trailing carriage returns.

Bug: https://github.com/bagder/curl/pull/258
parent 9fcc297f
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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) {