mirror of
https://github.com/curl/curl.git
synced 2025-03-25 15:50:32 +08: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
@ -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…
x
Reference in New Issue
Block a user