diff options
author | "Steven J. Hill" <sjhill@realitydiluted.com> | 2007-05-07 03:58:30 +0000 |
---|---|---|
committer | "Steven J. Hill" <sjhill@realitydiluted.com> | 2007-05-07 03:58:30 +0000 |
commit | 1f92831170d5be9cb0511f6f9360d3c2daf3d24c (patch) | |
tree | 831eb1a20f5213fa08ba2d7b39c932aaefd70449 /package/curl/curl-7.13.1-auth.patch | |
parent | 0a41ba39e26b08d9a000a917eeccd948e9da12a7 (diff) | |
download | buildroot-novena-1f92831170d5be9cb0511f6f9360d3c2daf3d24c.tar.gz buildroot-novena-1f92831170d5be9cb0511f6f9360d3c2daf3d24c.zip |
Add new packages.
Diffstat (limited to 'package/curl/curl-7.13.1-auth.patch')
-rw-r--r-- | package/curl/curl-7.13.1-auth.patch | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/package/curl/curl-7.13.1-auth.patch b/package/curl/curl-7.13.1-auth.patch new file mode 100644 index 000000000..1488e83f2 --- /dev/null +++ b/package/curl/curl-7.13.1-auth.patch @@ -0,0 +1,48 @@ +--- curl-7.13.1/lib/http.c.pom 2005-02-19 00:53:07.000000000 +0100 ++++ curl-7.13.1/lib/http.c 2005-04-27 11:48:40.000000000 +0200 +@@ -455,6 +455,7 @@ + /* To prevent the user+password to get sent to other than the original + host due to a location-follow, we do some weirdo checks here */ + if(!data->state.this_is_a_follow || ++ conn->bits.netrc || + !data->state.first_host || + curl_strequal(data->state.first_host, conn->host.name) || + data->set.http_disable_hostname_check_before_authentication) { +--- curl-7.13.1/lib/url.c.pom 2005-02-09 23:47:57.000000000 +0100 ++++ curl-7.13.1/lib/url.c 2005-04-27 11:45:59.000000000 +0200 +@@ -3131,15 +3131,23 @@ + user, passwd); + } + ++ conn->bits.netrc = FALSE; + if (data->set.use_netrc != CURL_NETRC_IGNORED) { + if(Curl_parsenetrc(conn->host.name, + user, passwd, + data->set.netrc_file)) { +- infof(data, "Couldn't find host %s in the " DOT_CHAR "netrc file, using defaults\n", ++ infof(data, "Couldn't find host %s in the " DOT_CHAR ++ "netrc file, using defaults\n", + conn->host.name); + } +- else ++ else { ++ /* set bits.netrc TRUE to remember that we got the name from a .netrc ++ file, so that it is safe to use even if we followed a Location: to a ++ different host or similar. */ ++ conn->bits.netrc = TRUE; ++ + conn->bits.user_passwd = 1; /* enable user+password */ ++ } + } + + /* If our protocol needs a password and we have none, use the defaults */ +--- curl-7.13.1/lib/urldata.h.pom 2005-02-09 14:06:56.000000000 +0100 ++++ curl-7.13.1/lib/urldata.h 2005-04-27 11:50:31.000000000 +0200 +@@ -388,6 +388,7 @@ + bool ftp_use_lprt; /* As set with CURLOPT_FTP_USE_EPRT, but if we find out + LPRT doesn't work we disable it for the forthcoming + requests */ ++ bool netrc; /* name+password provided by netrc */ + }; + + struct hostname { |