]> sjero.net Git - wget/commitdiff
Imported slash/--no-parents and sys/time.h fixes from eleven (99b1afbc14bc).
authorMicah Cowan <micah@cowan.name>
Mon, 17 Mar 2008 08:53:49 +0000 (01:53 -0700)
committerMicah Cowan <micah@cowan.name>
Mon, 17 Mar 2008 08:53:49 +0000 (01:53 -0700)
doc/ChangeLog
doc/wget.texi
src/ChangeLog
src/connect.c

index 509828cc6acb2983608adf9ed2969d3766d7a73f..2f25f5a8085313fe56aaa9433953db97c22d1322 100644 (file)
@@ -1,3 +1,8 @@
+2008-03-17  Micah Cowan  <micah@cowan.name>
+
+       * wget.texi <Directory-Based Limits>: Mention importance of
+       trailing slashes to --no-parents.
+
 2008-02-10  Micah Cowan  <micah@cowan.name>
 
        * wget.texi <HTTP Options>: Added documentation of
index 008e1809e438a711024b4dad0fd9eae65b204821..a440794904495772fe956f72f40a559c939ab7e5 100644 (file)
@@ -2202,6 +2202,14 @@ followed.  Only the archive you are interested in will be downloaded.
 Essentially, @samp{--no-parent} is similar to
 @samp{-I/~luzer/my-archive}, only it handles redirections in a more
 intelligent fashion.
+
+@strong{Note} that, for HTTP (and HTTPS), the trailing slash is very
+important to @samp{--no-parent}. HTTP has no concept of a ``directory''---Wget
+relies on you to indicate what's a directory and what isn't. In
+@samp{http://foo/bar/}, Wget will consider @samp{bar} to be a
+directory, while in @samp{http://foo/bar} (no trailing slash),
+@samp{bar} will be considered a filename (so @samp{--no-parent} would be
+meaningless, as its parent is @samp{/}).
 @end table
 
 @node Relative Links
index c78ee268afe325f1d60d84ed9ced3c3dcc2434f4..b6169204b264d4dc9f7af89fb92efcfb065c4fdc 100644 (file)
@@ -1,3 +1,8 @@
+2008-03-17  Micah Cowan  <micah@cowan.name>
+
+       * connect.c: Include sys/time.h to support use of the select
+       function on older systems.
+
 2008-02-11  Benno Schulenberg  <bensberg@justemail.net>
 
        * http.c: More accurate and descriptive messages for when a file
index e4ad453b1658806eb37df21c72c8ec4d7306db26..2be764d41c2356f0302eafd41fadd8153c386ceb 100644 (file)
@@ -51,6 +51,9 @@ as that of the covered work.  */
 #ifdef HAVE_SYS_SELECT_H
 # include <sys/select.h>
 #endif /* HAVE_SYS_SELECT_H */
+#ifdef HAVE_SYS_TIME_H
+# include <sys/time.h>
+#endif
 #include "utils.h"
 #include "host.h"
 #include "connect.h"