mirror of
https://github.com/curl/curl.git
synced 2026-08-24 21:33:31 +03:00
url: fix netrc info message
- Fix netrc info message to use the generic ".netrc" filename if the user did not specify a netrc location. - Update --netrc doc to add that recent versions of curl on Windows prefer .netrc over _netrc. Before: * Couldn't find host google.com in the (nil) file; using defaults After: * Couldn't find host google.com in the .netrc file; using defaults Closes https://github.com/curl/curl/pull/11904
This commit is contained in:
parent
739a9e8e12
commit
ab18c04218
2 changed files with 13 additions and 8 deletions
|
|
@ -2719,7 +2719,9 @@ static CURLcode override_login(struct Curl_easy *data,
|
|||
data->set.str[STRING_NETRC_FILE]);
|
||||
if(ret > 0) {
|
||||
infof(data, "Couldn't find host %s in the %s file; using defaults",
|
||||
conn->host.name, data->set.str[STRING_NETRC_FILE]);
|
||||
conn->host.name,
|
||||
(data->set.str[STRING_NETRC_FILE] ?
|
||||
data->set.str[STRING_NETRC_FILE] : ".netrc"));
|
||||
}
|
||||
else if(ret < 0) {
|
||||
failf(data, ".netrc parser error");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue