bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-wget] Regression wget-1.19 .netrc authentication not working


From: Axel Reinhold
Subject: [Bug-wget] Regression wget-1.19 .netrc authentication not working
Date: Mon, 6 Feb 2017 16:11:26 +0100
User-agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0

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

--
+----------------------------------------------------------+
| Hofer Textilveredelungs GmbH| Fon:   +49-9281/750-299    |
|  Axel Reinhold, CIO         | Fax:   +49-9281/750-406    |
| Am Wiesengrund 20           | address@hidden          |
| 95032 Hof                   | HRB Hof 1988               |
| Geschaefsfuehrer: Dr. Jakob Gonczarowski                 |
+----------------------------------------------------------+
| Bitte um Nur-Text-Mails - Office-, HTML, .EXE-Anhaenge   |
|            oeffne ich grundsaetzlich nicht.              |
+----------------------------------------------------------+

BEGIN:VCARD
VERSION:2.1
N:Reinhold;Axel
FN:Axel Reinhold
ORG:Hofer Textilveredelungs GmbH
ADR:;;Am Wiesengrund 20;Hof;;95032;Germany
TEL;WORK:+49-9281-750-299
TEL;FAX:+49-9281-750-270
TEL;CELL:+49-172-9382465
EMAIL:address@hidden
END:VCARD



reply via email to

[Prev in Thread] Current Thread [Next in Thread]