Skip to content

Commit

Permalink
netrc: treat failure to find home dir same as missing netrc file
Browse files Browse the repository at this point in the history
This previously caused a fatal error (with a confusing error code, at
that).

Reported by: Glen A Johnson Jr.
  • Loading branch information
dfandrich committed Jul 12, 2014
1 parent 4a67b3e commit 135c2dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions RELEASE-NOTES
Expand Up @@ -57,6 +57,7 @@ This release includes the following bugfixes:
o gnutls: fixed compilation against versions < 2.12.0
o build: Fixed overridden compiler PDB settings in VC7 to VC12
o ntlm_wb: Fixed buffer size not being large enough for NTLMv2 sessions [11]
o netrc: don't abort if home dir cannot be found

This release includes the following known bugs:

Expand Down
2 changes: 1 addition & 1 deletion lib/netrc.c
Expand Up @@ -88,7 +88,7 @@ int Curl_parsenetrc(const char *host,
}

if(!home)
return -1;
return retcode; /* no home directory found (or possibly out of memory) */

netrcfile = curl_maprintf("%s%s%s", home, DIR_CHAR, NETRC);
if(home_alloc)
Expand Down

0 comments on commit 135c2dc

Please sign in to comment.