[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-wget] Regression wget-1.19 .netrc authentication not working
From: |
Tim Rühsen |
Subject: |
Re: [Bug-wget] Regression wget-1.19 .netrc authentication not working |
Date: |
Mon, 06 Feb 2017 21:45:25 +0100 |
User-agent: |
KMail/5.2.3 (Linux/4.9.0-1-amd64; KDE/5.28.0; x86_64; ; ) |
On Montag, 6. Februar 2017 16:11:26 CET Axel Reinhold wrote:
> Dear Giuseppe,
>
> no more .netrc auth for http with 1.19 - this patch worked for me:
>
> --- src/http.c.orig 2017-02-06 16:03:45.000000000 +0100
> +++ src/http.c 2017-02-06 16:03:45.000000000 +0100
> @@ -1900,7 +1900,7 @@
> *passwd = NULL;
>
> /* Check for ~/.netrc if none of the above match */
> - if (opt.netrc && (!user || !passwd))
> + if (opt.netrc && (!*user || !*passwd))
> search_netrc (u->host, (const char **) user, (const char **)
> passwd, 0);
>
> /* We only do "site-wide" authentication with "global" user/password
Thanks Axel,
fix pushed to repo.
Tim
signature.asc
Description: This is a digitally signed message part.