JXrg Mattik <[EMAIL PROTECTED]> writes: > Today I have tested the latest CVS Version and found that the > described behaviour is not complete gone. The old version 1.6 seems > to work correct. But with 1.8devel now the complete folder (dist) > with the program files wasn't downloaded. And relative URLs are > moved to absolute.
Note that the latter is a consequence of the former. So, for one, the bug where Wget would produce this on line 52 od download.html: >> > this file looks like this: >> > >> > <a >href="http://vegemite.chem.nottingham.ac.uk/%7Exmakemol/download/../dists/index.html"> is gone. That's a start. The second problem is, why aren't the "dists" downloaded? Because of a bug, which should be fixed by the patch appended below. Please let me know if Wget behaves as you expect after applying the patch. And thanks for your patience with this. Index: src/recur.c =================================================================== RCS file: /pack/anoncvs/wget/src/recur.c,v retrieving revision 1.31 diff -u -r1.31 recur.c --- src/recur.c 2001/11/26 05:36:32 1.31 +++ src/recur.c 2001/11/29 17:00:40 @@ -437,13 +437,14 @@ If we descended to a different host or changed the scheme, ignore opt.no_parent. Also ignore it for -p leaf retrievals. */ if (opt.no_parent - && u->scheme == parent->scheme - && 0 == strcasecmp (u->host, parent->host) - && u->port == parent->port) + && u->scheme == start_url_parsed->scheme + && 0 == strcasecmp (u->host, start_url_parsed->host) + && u->port == start_url_parsed->port) { - if (!frontcmp (parent->dir, u->dir)) + if (!frontcmp (start_url_parsed->dir, u->dir)) { - DEBUGP (("Trying to escape the root directory with no_parent in effect.\n")); + DEBUGP (("Going to \"%s\" would escape \"%s\" with no_parent on.\n", + u->dir, start_url_parsed->dir)); goto out; } }
