From 5baed885db81a13ea5c75002ba2e069724acace9 Mon Sep 17 00:00:00 2001 From: hniksic Date: Fri, 30 Nov 2001 01:33:22 -0800 Subject: [PATCH] [svn] Fix netrc authorization in conjunction with HTTP. Submitted by Daniel BODEA in <011901c162ca$19779df0$25c0a8c0@GHOTIX>. --- src/ChangeLog | 6 ++++++ src/netrc.c | 2 -- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 47a852a2..ed710030 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2001-10-31 Daniel BODEA + + * netrc.c (search_netrc): When slack_default is 0, still look for + an account with matching password, just not the "default account". + HTTP Authorization using .netrc should now work as expected. + 2001-11-30 T. Bharath * http.c (persistent_available_p): Call SHUTDOWN_SSL if diff --git a/src/netrc.c b/src/netrc.c index 28e9ec42..4b3d2b40 100644 --- a/src/netrc.c +++ b/src/netrc.c @@ -90,8 +90,6 @@ search_netrc (const char *host, const char **acc, const char **passwd, /* Acc and password found; all OK. */ if (*acc && *passwd) return; - if (!*acc && !slack_default) - return; /* Some data not given -- try finding the host. */ for (l = netrc_list; l; l = l->next) {