diff --git a/wget-1.10.2-cookies,patch b/wget-1.10.2-cookies,patch new file mode 100644 index 0000000..5b72759 --- /dev/null +++ b/wget-1.10.2-cookies,patch @@ -0,0 +1,26 @@ +--- wget-1.10.2/src/cookies.c.cookies 2007-02-12 06:02:04.000000000 -0500 ++++ wget-1.10.2/src/cookies.c 2007-02-12 06:04:06.000000000 -0500 +@@ -398,18 +398,17 @@ + { + cookie->permanent = 1; + cookie->expiry_time = expires; ++ /* According to netscape's specification, expiry time in ++ the past means that discarding of a matching cookie ++ is requested. */ ++ if (cookie->expiry_time < cookies_now) ++ cookie->discard_requested = 1; + } + else + /* Error in expiration spec. Assume default (cookie doesn't + expire, but valid only for this session.) */ + ; + +- /* According to netscape's specification, expiry time in the +- past means that discarding of a matching cookie is +- requested. */ +- if (cookie->expiry_time < cookies_now) +- cookie->discard_requested = 1; +- + return 1; + } + else if (NAME_IS ("max-age"))