Skip to content

Commit 5361bdf

Browse files
committed
curl: update to release 7.21.1
curl 7.21.1 includes support for NTLM which should be of interest. Fixed the dog food patch which failed to apply and added a patch to read the netrc file with explicit text mode. Create the curl git as autocrlf false to make it silent on commit. Signed-off-by: Pat Thoyts <[email protected]>
1 parent 652068b commit 5361bdf

4 files changed

Lines changed: 40 additions & 9 deletions

File tree

src/curl/.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
curl-7.20.0/
2-
curl-7.20.0.tar.bz2
1+
curl-*/
2+
curl-*.tar.bz2
3+
curl-*.tar.bz2.asc

src/curl/patches/0001-Eat-own-dog-food-use-cURL-to-download-CAs.patch

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@ Signed-off-by: Johannes Schindelin <[email protected]>
99
1 files changed, 1 insertions(+), 13 deletions(-)
1010

1111
diff --git a/lib/mk-ca-bundle.pl b/lib/mk-ca-bundle.pl
12-
index c964efe..83fc5ef 100644
12+
index 3586dc4..55debff 100644
1313
--- a/lib/mk-ca-bundle.pl
1414
+++ b/lib/mk-ca-bundle.pl
15-
@@ -33,7 +33,6 @@
15+
@@ -32,7 +32,6 @@
1616
#
1717
use Getopt::Std;
1818
use MIME::Base64;
1919
-use LWP::UserAgent;
2020
use strict;
21-
use vars qw($opt_b $opt_h $opt_i $opt_l $opt_n $opt_q $opt_t $opt_u $opt_v);
21+
use vars qw($opt_b $opt_h $opt_i $opt_l $opt_n $opt_q $opt_t $opt_u $opt_v);
2222

23-
@@ -52,8 +51,6 @@ if ($opt_i) {
23+
@@ -51,8 +50,6 @@ if ($opt_i) {
2424
print "Operating System Name : $^O\n";
2525
print "Getopt::Std.pm Version : ${Getopt::Std::VERSION}\n";
2626
print "MIME::Base64.pm Version : ${MIME::Base64::VERSION}\n";
@@ -29,7 +29,7 @@ index c964efe..83fc5ef 100644
2929
print ("=" x 78 . "\n");
3030
}
3131

32-
@@ -78,16 +75,7 @@ $txt =~ s/\?.*//;
32+
@@ -77,16 +74,7 @@ $txt =~ s/\?.*//;
3333

3434
if (!$opt_n || !-e $txt) {
3535
print "Downloading '$txt' ...\n" if (!$opt_q);
@@ -48,5 +48,5 @@ index c964efe..83fc5ef 100644
4848

4949
if ($opt_b && -e $crt) {
5050
--
51-
1.6.3.2.1299.gee46c
51+
1.7.3.rc0.2611.g5f0f0
5252

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
From f854f1bb65bb66af0764a98e3a71f73a97decd25 Mon Sep 17 00:00:00 2001
2+
From: Pat Thoyts <[email protected]>
3+
Date: Fri, 10 Sep 2010 10:40:03 +0100
4+
Subject: [PATCH] curl: treat .netrc files as text when opening to handle line endings
5+
6+
The .netrc file may well use CRLF on Windows and should be opened using
7+
text mode to avoid reading in the CR as part of the authentication data.
8+
9+
Signed-off-by: Pat Thoyts <[email protected]>
10+
---
11+
lib/netrc.c | 2 +-
12+
1 files changed, 1 insertions(+), 1 deletions(-)
13+
14+
diff --git a/lib/netrc.c b/lib/netrc.c
15+
index 1c425fe..27d21bd 100644
16+
--- a/lib/netrc.c
17+
+++ b/lib/netrc.c
18+
@@ -138,7 +138,7 @@ int Curl_parsenetrc(const char *host,
19+
netrc_alloc = TRUE;
20+
}
21+
22+
- file = fopen(netrcfile, "r");
23+
+ file = fopen(netrcfile, "rt");
24+
if(file) {
25+
char *tok;
26+
char *tok_buf;
27+
--
28+
1.7.2.1.msysgit.0
29+

src/curl/release.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
cd "$(dirname "$0")"
44

5-
VERSION=7.20.0
5+
VERSION=7.21.1
66
DIR=curl-$VERSION
77
URL=http://curl.haxx.se/download/$DIR.tar.bz2
88
FILE=${URL##*/}
@@ -20,6 +20,7 @@ test -d $DIR || {
2020
tar xjvf $FILE && (
2121
cd $DIR &&
2222
git init &&
23+
git config core.autocrlf false &&
2324
git add . &&
2425
git commit -m "Import of $FILE"
2526
)

0 commit comments

Comments
 (0)