diff options
-rw-r--r-- | net/wget/distinfo | 3 | ||||
-rw-r--r-- | net/wget/patches/patch-af | 31 |
2 files changed, 33 insertions, 1 deletions
diff --git a/net/wget/distinfo b/net/wget/distinfo index 762366cd56e..e7151cbe380 100644 --- a/net/wget/distinfo +++ b/net/wget/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.11 2002/03/30 13:57:02 pooka Exp $ +$NetBSD: distinfo,v 1.12 2002/10/21 14:46:26 mycroft Exp $ SHA1 (wget-1.7.tar.gz) = b44118972c11a410b81ad3d306861b370071e611 Size (wget-1.7.tar.gz) = 945138 bytes @@ -9,3 +9,4 @@ SHA1 (patch-ab) = 797716b5a213c1e6b12f9407769e606b50818a67 SHA1 (patch-ac) = 20cc35210374c68ddcaf39830620d853b4311988 SHA1 (patch-ad) = 8994c291eb3e06c87a6c83dfc2b02fbf9f318c34 SHA1 (patch-ae) = 1400b747cb0b2cd4311e566941cbc8ff3e59c76d +SHA1 (patch-af) = 99947fe7a56611cd0c949ddd7736971e96627731 diff --git a/net/wget/patches/patch-af b/net/wget/patches/patch-af new file mode 100644 index 00000000000..a5c788a772c --- /dev/null +++ b/net/wget/patches/patch-af @@ -0,0 +1,31 @@ +$NetBSD: patch-af,v 1.3 2002/10/21 14:46:27 mycroft Exp $ + +--- src/cookies.c.orig Sun May 27 19:34:56 2001 ++++ src/cookies.c Mon Oct 21 14:27:38 2002 +@@ -474,7 +474,12 @@ + { + case S_NAME_PRE: + if (ISSPACE (c)) +- FETCH (c, p); ++ { ++ FETCH1 (c, p); ++ /* drop trailing whitespace */ ++ if (!c) ++ state = S_DONE; ++ } + else if (ATTR_NAME_CHAR (c)) + { + name_b = p - 1; +@@ -605,7 +610,11 @@ + } + } + if (state == S_DONE) +- return cookie; ++ { ++ if (!cookie->attr) ++ goto eof; ++ return cookie; ++ } + + delete_cookie (cookie); + if (state == S_ERROR) |