1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

Imported slash/--no-parents and sys/time.h fixes from eleven (99b1afbc14bc).

This commit is contained in:
Micah Cowan 2008-03-17 01:53:49 -07:00
parent 1c9574a1cd
commit 1db9f1e9ac
4 changed files with 21 additions and 0 deletions

View 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> 2008-02-10 Micah Cowan <micah@cowan.name>
* wget.texi <HTTP Options>: Added documentation of * wget.texi <HTTP Options>: Added documentation of

View File

@ -2202,6 +2202,14 @@ followed. Only the archive you are interested in will be downloaded.
Essentially, @samp{--no-parent} is similar to Essentially, @samp{--no-parent} is similar to
@samp{-I/~luzer/my-archive}, only it handles redirections in a more @samp{-I/~luzer/my-archive}, only it handles redirections in a more
intelligent fashion. 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 @end table
@node Relative Links @node Relative Links

View 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> 2008-02-11 Benno Schulenberg <bensberg@justemail.net>
* http.c: More accurate and descriptive messages for when a file * http.c: More accurate and descriptive messages for when a file

View File

@ -51,6 +51,9 @@ as that of the covered work. */
#ifdef HAVE_SYS_SELECT_H #ifdef HAVE_SYS_SELECT_H
# include <sys/select.h> # include <sys/select.h>
#endif /* HAVE_SYS_SELECT_H */ #endif /* HAVE_SYS_SELECT_H */
#ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
#endif
#include "utils.h" #include "utils.h"
#include "host.h" #include "host.h"
#include "connect.h" #include "connect.h"