mirror of
https://github.com/curl/curl.git
synced 2026-07-08 01:07:17 +03:00
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
This commit is contained in:
parent
9fcc297ff3
commit
33058a1dc3
1 changed files with 4 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue