~ubuntu-branches/ubuntu/precise/wget/precise-proposed

« back to all changes in this revision

Viewing changes to debian/patches/wget-fix_error--save-headers

  • Committer: Bazaar Package Importer
  • Author(s): Noèl Köthe
  • Date: 2005-06-26 16:46:25 UTC
  • mfrom: (1.1.1 upstream) (2.1.1 sarge)
  • Revision ID: james.westby@ubuntu.com-20050626164625-jjcde8hyztx7xq7o
Tags: 1.10-2
* wget-fix_error--save-headers patch from upstream
  (closes: Bug#314728)
* don't pattern-match server redirects patch from upstream
  (closes: Bug#163243)
* correct de.po typos
  (closes: Bug#313883)
* wget-E_html_behind_file_counting fix problem with adding the
  numbers after the html extension
* updated Standards-Version: to 3.6.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh -e
 
2
## PATCHNAME by NAME <EMAIL>
 
3
##
 
4
## DP: DESCRIPTION
 
5
 
 
6
if [ $# -lt 1 ]; then
 
7
    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
 
8
    exit 1
 
9
fi
 
10
 
 
11
[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
 
12
patch_opts="${patch_opts:--f --no-backup-if-mismatch} ${2:+-d $2}"
 
13
 
 
14
case "$1" in
 
15
       -patch) patch $patch_opts -p1 < $0;;
 
16
       -unpatch) patch $patch_opts -p1 -R < $0;;
 
17
        *)
 
18
                echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
 
19
                exit 1;;
 
20
esac
 
21
 
 
22
exit 0
 
23
 
 
24
@DPATCH@
 
25
--- wget-1.10.orig/src/http.c  2005/06/17 22:06:26     1.192
 
26
+++ wget-1.10/src/http.c  2005/06/18 14:12:17
 
27
@@ -1753,7 +1753,6 @@
 
28
        contrange = first_byte_pos;
 
29
     }
 
30
   resp_free (resp);
 
31
-  xfree (head);
 
32
 
 
33
   /* 20x responses are counted among successful by default.  */
 
34
   if (H_20X (statcode))
 
35
@@ -1945,6 +1944,9 @@
 
36
      size.  Maybe we should save some additional information?  */
 
37
   if (opt.save_headers)
 
38
     fwrite (head, 1, strlen (head), fp);
 
39
+
 
40
+  /* Now we no longer need to store the response header. */
 
41
+  xfree (head);
 
42
 
 
43
   /* Download the request body.  */
 
44
   flags = 0;
 
45