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

« back to all changes in this revision

Viewing changes to src/recur.c

  • Committer: Bazaar Package Importer
  • Author(s): Steve Langasek
  • Date: 2011-10-19 00:00:09 UTC
  • mfrom: (2.1.13 sid)
  • Revision ID: james.westby@ubuntu.com-20111019000009-8p33w3wz4b1rdri0
Tags: 1.13-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - Add wget-udeb to ship wget.gnu as alternative to busybox wget
    implementation.
  - Depend on libssl-dev 0.9.8k-7ubuntu4 (LP: #503339)
* Dropped changes, superseded in Debian:
  - Keep build dependencies in main:
    + debian/control: remove info2man build-dep
    + debian/patches/series: disable wget-infopod_generated_manpage
  - Mark wget Multi-Arch: foreign, so packages that aren't of the same arch
    can depend on it.
* Pass --with-ssl=openssl; we don't want to use gnutls, there's no udeb for
  it.
* Add a second build pass for the udeb, so we can build without libidn.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* Handling of recursive HTTP retrieving.
2
2
   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
3
 
   2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
 
3
   2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
 
4
   Inc.
4
5
 
5
6
This file is part of GNU Wget.
6
7
 
33
34
#include <stdio.h>
34
35
#include <stdlib.h>
35
36
#include <string.h>
36
 
#ifdef HAVE_UNISTD_H
37
 
# include <unistd.h>
38
 
#endif /* HAVE_UNISTD_H */
 
37
#include <unistd.h>
39
38
#include <errno.h>
40
39
#include <assert.h>
41
40
 
200
199
     the queue, but haven't been downloaded yet.  */
201
200
  struct hash_table *blacklist;
202
201
 
203
 
  int up_error_code;
204
202
  struct iri *i = iri_new ();
205
203
 
206
204
#define COPYSTR(x)  (x) ? xstrdup(x) : NULL;
565
563
  if (opt.no_parent
566
564
      && schemes_are_similar_p (u->scheme, start_url_parsed->scheme)
567
565
      && 0 == strcasecmp (u->host, start_url_parsed->host)
568
 
      && u->port == start_url_parsed->port
 
566
      && (u->scheme != start_url_parsed->scheme
 
567
          || u->port == start_url_parsed->port)
569
568
      && !(opt.page_requisites && upos->link_inline_p))
570
569
    {
571
570
      if (!subdir_p (start_url_parsed->dir, u->dir))