also install required files for HAVE_INCLUDES
[buildroot.git] / package / curl / curl-7.13.1-auth.patch
blob1488e83f2bf9f852756405618546349cf7dfaa0a
1 --- curl-7.13.1/lib/http.c.pom 2005-02-19 00:53:07.000000000 +0100
2 +++ curl-7.13.1/lib/http.c 2005-04-27 11:48:40.000000000 +0200
3 @@ -455,6 +455,7 @@
4 /* To prevent the user+password to get sent to other than the original
5 host due to a location-follow, we do some weirdo checks here */
6 if(!data->state.this_is_a_follow ||
7 + conn->bits.netrc ||
8 !data->state.first_host ||
9 curl_strequal(data->state.first_host, conn->host.name) ||
10 data->set.http_disable_hostname_check_before_authentication) {
11 --- curl-7.13.1/lib/url.c.pom 2005-02-09 23:47:57.000000000 +0100
12 +++ curl-7.13.1/lib/url.c 2005-04-27 11:45:59.000000000 +0200
13 @@ -3131,15 +3131,23 @@
14 user, passwd);
17 + conn->bits.netrc = FALSE;
18 if (data->set.use_netrc != CURL_NETRC_IGNORED) {
19 if(Curl_parsenetrc(conn->host.name,
20 user, passwd,
21 data->set.netrc_file)) {
22 - infof(data, "Couldn't find host %s in the " DOT_CHAR "netrc file, using defaults\n",
23 + infof(data, "Couldn't find host %s in the " DOT_CHAR
24 + "netrc file, using defaults\n",
25 conn->host.name);
27 - else
28 + else {
29 + /* set bits.netrc TRUE to remember that we got the name from a .netrc
30 + file, so that it is safe to use even if we followed a Location: to a
31 + different host or similar. */
32 + conn->bits.netrc = TRUE;
34 conn->bits.user_passwd = 1; /* enable user+password */
35 + }
38 /* If our protocol needs a password and we have none, use the defaults */
39 --- curl-7.13.1/lib/urldata.h.pom 2005-02-09 14:06:56.000000000 +0100
40 +++ curl-7.13.1/lib/urldata.h 2005-04-27 11:50:31.000000000 +0200
41 @@ -388,6 +388,7 @@
42 bool ftp_use_lprt; /* As set with CURLOPT_FTP_USE_EPRT, but if we find out
43 LPRT doesn't work we disable it for the forthcoming
44 requests */
45 + bool netrc; /* name+password provided by netrc */
48 struct hostname {