Jochen Roderburg <[EMAIL PROTECTED]> writes:
> I think the 'timestamping' is the point, because without that I see
> that no .listing file is used at all, and the problem doesn't
> appear.
Yes, with the timestamping turned on, I was able to repeat the
problem. This patch should fix it:
2001-12-02 Hrvoje Niksic <[EMAIL PROTECTED]>
* utils.c (file_merge): If BASE doesn't contain a slash, just
return a copy of FILE.
Index: src/utils.c
===================================================================
RCS file: /pack/anoncvs/wget/src/utils.c,v
retrieving revision 1.30
diff -u -r1.30 utils.c
--- src/utils.c 2001/12/01 05:08:03 1.30
+++ src/utils.c 2001/12/02 21:41:59
@@ -744,10 +744,12 @@
}
/* Merge BASE with FILE. BASE can be a directory or a file name, FILE
- should be a file name. For example, file_merge("/foo/bar", "baz")
- will return "/foo/baz". file_merge("/foo/bar/", "baz") will return
- "foo/bar/baz".
+ should be a file name.
+ file_merge("/foo/bar", "baz") => "/foo/baz"
+ file_merge("/foo/bar/", "baz") => "/foo/bar/baz"
+ file_merge("foo", "bar") => "bar"
+
In other words, it's a simpler and gentler version of uri_merge_1. */
char *
@@ -757,7 +759,7 @@
const char *cut = (const char *)strrchr (base, '/');
if (!cut)
- cut = base + strlen (base);
+ return xstrdup (file);
result = (char *)xmalloc (cut - base + 1 + strlen (file) + 1);
memcpy (result, base, cut - base);