Follow-up Comment #3, bug #48811 (project wget):
Thanks for working on this.
If you are working on that code anyways, please consider making it more
readable, e.g. like
if (u->user)
*user = u->user;
else if (opt.http_user)
*user = opt.http_user;
else if (opt.user)
*user = opt.user;
... same for passwd ...
if (opt.netrc && (!*user || !*password))
search_netrc (u->host, (const char **)user, (const char **)passwd, 0);
But that is not all... when opt.use_askpass is set and the user/password have
been retrieved by that mechanism, these values should have priority over
opt.http|ftp_user / opt.http|ftp_passwd, right ?
Similar with opt.ask_passwd.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?48811>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/