]> granicus.if.org Git - curl/commit
netrc: don't ignore the login name specified with "--user"
authorMichael Kaufmann <mail@michael-kaufmann.ch>
Sat, 3 Nov 2018 15:58:18 +0000 (16:58 +0100)
committerMichael Kaufmann <mail@michael-kaufmann.ch>
Mon, 5 Nov 2018 19:34:01 +0000 (20:34 +0100)
commit53db15ba5524584196eedb3abe8d2e97fb5a3cc0
tree9e249e6b15f8e4580dd837cd15a6c678e2d6d057
parenta77b640cc0ddace57758946881294db6f03db16e
netrc: don't ignore the login name specified with "--user"

- for "--netrc", don't ignore the login/password specified with "--user",
  only ignore the login/password in the URL.
  This restores the netrc behaviour of curl 7.61.1 and earlier.
- fix the documentation of CURL_NETRC_REQUIRED
- improve the detection of login/password changes when reading .netrc
- don't read .netrc if both login and password are already set

Fixes #3213
Closes #3224
docs/cmdline-opts/netrc-file.d
docs/libcurl/opts/CURLOPT_NETRC.3
lib/netrc.c
lib/netrc.h
lib/url.c
tests/unit/unit1304.c