mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:31:41 +03:00
netrc: restore _netrc fallback logic
Regression from 05977f4f75fd08837a877, shipped in 8.11.0 Fixes #15734 Closes #15735
This commit is contained in:
parent
c2ac9ea1ee
commit
0439499170
1 changed files with 1 additions and 1 deletions
|
|
@ -390,7 +390,7 @@ int Curl_parsenetrc(struct store_netrc *store, const char *host,
|
|||
retcode = parsenetrc(store, host, loginp, passwordp, filealloc);
|
||||
free(filealloc);
|
||||
#ifdef _WIN32
|
||||
if(retcode == NETRC_FILE_MISSING) {
|
||||
if((retcode == NETRC_FILE_MISSING) || (retcode == NETRC_FAILED)) {
|
||||
/* fallback to the old-style "_netrc" file */
|
||||
filealloc = aprintf("%s%s_netrc", home, DIR_CHAR);
|
||||
if(!filealloc) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue