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

220 Commits

Author SHA1 Message Date
Micah Cowan
7585b7019d --no-match-server-timestamps -> --no-use-server-timestamps 2010-01-09 20:21:37 -08:00
David Holman
1f08245076 --no-match-server-timestamps 2010-01-09 18:57:18 -08:00
Steven Schweda
e83b33f844 target -> targ; use OS_TYPE for VMS in build info string. 2009-09-24 12:23:08 -07:00
Micah Cowan
4a08094db8 [mq]: cfg-mk 2009-09-21 20:39:44 -07:00
Steven Schweda
5ef1d7b949 Fixes needed for VMS. 2009-09-11 19:41:57 -07:00
Micah Cowan
30391ad9b4 Fix false "downloaded bytes" information from getftp. 2009-09-06 14:08:35 -07:00
Micahel Baeuerle
ba84c1ec98 #include strings.h in ftp.c. 2009-08-09 18:19:25 -07:00
Micah Cowan
731b057e7a Removed call to already-removed ftp_dele function. 2009-07-04 20:31:31 -07:00
Micah Cowan
d5e283b1a7 Automated merge. 2009-07-04 15:32:57 -07:00
Micah Cowan
222a835bfb Return CONERROR when accept_connection fails (#25015). 2009-06-15 23:48:14 -07:00
Steven Schubiger
766df9d4e9 Restore string after function call. 2009-05-28 23:32:54 +02:00
Steven Schubiger
1df3a35106 Duplicate string to circumvent eventual memory corruption. 2009-05-27 21:47:57 +02:00
Steven Schubiger
116b261a9f Move duplicated code to a function. 2009-04-13 22:19:13 +02:00
Steven Schubiger
42253233c3 Adjust copyright years. 2009-03-03 21:16:47 +01:00
Steven Schubiger
57a7ebef93 Improve also messages when writing a document retrieved via FTP to stdout (#20520). 2009-02-27 21:22:29 +01:00
Steven Schubiger
f33c275621 Move numurls out of options struct. 2008-11-16 20:53:58 +01:00
Micah Cowan
8f5ffd9589 Only print remaining size when > 1k. 2008-11-05 13:38:50 -08:00
Micah Cowan
ef113e51d8 stsc: FTP -nv --spider: say something about existant files, too. 2008-06-26 11:01:48 -07:00
Micah Cowan
1859cd569b Picked off remaining escnonprint call. 2008-05-26 11:36:42 -07:00
Micah Cowan
d78cd8d8f8 Merging heads. 2008-05-15 22:36:20 -07:00
Micah Cowan
da51f9b2c4 Fix file-checking in FTP with --spider. 2008-05-15 22:26:00 -07:00
Micah Cowan
e72b57629b Merge quote module stuff with current mainline. 2008-05-15 19:13:08 -07:00
Micah Cowan
3323b84c30 Quoting tweaks. 2008-05-14 22:26:15 -07:00
Joao Ferreira
9fa15c310f Changed some comments related with bug fix #23238, to make things clearer. 2008-05-14 23:21:06 +01:00
Joao Ferreira
888c30ba01 Fixed bug #23238: --no-clobber doesn't work with -O flag
"wget -nc -O file URL" now checks if "file" exists first. If it does, it terminates.
2008-05-14 22:10:37 +01:00
Steven Schubiger
1fea56d6b6 Further quote*()-related integrations in ftp.c. 2008-04-25 22:55:06 +02:00
Micah Cowan
8896339e8d Only remove .listing if it has been created. 2008-04-22 22:28:53 -07:00
Micah Cowan
714ccdcd84 Steven Schweda's VMS patch. 2008-04-22 14:48:36 -07:00
Steven Schubiger
2c77220411 Undo the USE_GNULIB_ALLOC defines. 2008-04-20 11:46:52 +02:00
Steven Schubiger
76780021d8 Use Gnulib's alloc functions throughout the source. 2008-04-19 01:21:24 +02:00
Steven Schubiger
6aec825b93 Use Gnulib's quote function in ftp.c. 2008-04-16 11:36:12 +02:00
Micah Cowan
9d5b9daf06 Don't append to an existing .listing when --continue is used. Fixes bug #22825. 2008-04-11 16:28:24 -07:00
Micah Cowan
bc8f473272 Updated copyright year. 2008-01-25 05:04:01 -08:00
Micah Cowan
d26ff3ca0d Print arguments of fnmatch properly; don't use fnmatch if we're not in globbing mode. 2007-12-08 14:21:37 -08:00
Micah Cowan
462e643a7e Merge SFLC licensing changes for OpenSSL with tip. 2007-12-07 17:37:07 -08:00
Micah Cowan
86395b297b Updated licensing exception for OpenSSL from the SFLC. 2007-11-28 00:05:33 -08:00
Micah Cowan
212396c7e1 Eschew config-post.h. 2007-10-18 20:50:40 -07:00
Micah Cowan
da99855784 ISSPACE -> c_isspace 2007-10-14 14:46:24 -07:00
Micah Cowan
c0a444d5e6 Applying Gisle's latest MS-DOS patches. 2007-10-06 12:44:17 -07:00
Micah Cowan
5f341d6bc1 Dates as well as times in output timestamps 2007-10-02 20:31:23 -07:00
Micah Cowan
5dd09d9ba5 Update copyright lists, conforming to maintainer guidelines 2007-09-28 15:45:31 -07:00
micah
7d2066b221 [svn] Make indentation consistent (all-spaces, no tabs). 2007-08-02 20:38:21 -07:00
micah
c17f57f1fa [svn] Fix for bug #20296: User:pass@ given in Referer header. 2007-07-29 18:22:34 -07:00
micah
4d7c5e087b [svn] Merge of fix for bugs 20341 and 20410. 2007-07-09 22:53:22 -07:00
hniksic
ff82bd9276 [svn] Would incorrectly skip changing working directory when retrying after a
failed FTP attempt.
2006-10-18 13:45:30 -07:00
hniksic
8566a72767 [svn] Avoid code repetition between time_str and datetime_str. 2006-08-08 07:32:53 -07:00
mtortonesi
1c7493b83e [svn] Added sanity checks for -k, -p, -r and -N when -O is given. Added fixes for 64-bit platforms. Updated copyright and maintainer information. 2006-07-14 06:25:50 -07:00
mtortonesi
01093c0c33 [svn] Fixed recursive spider mode. 2006-05-25 09:11:29 -07:00
mtortonesi
8c69427125 [svn] Fixed typo 2005-10-05 02:43:47 -07:00
hniksic
481443d337 [svn] Simplify the ip_address data union. Always use inet_ntop for printing
IP addresses when IPv6 is enabled.
2005-08-10 06:50:08 -07:00
hniksic
fdb3a03fca [svn] Don't free RESPLINE if ftp_response returns a status other than FTPOK.
By Vasil Dimov.
2005-08-08 15:21:59 -07:00
hniksic
097695b723 [svn] New option --ignore-case for case-insensitive matching. 2005-07-06 12:44:00 -07:00
hniksic
550c39e714 [svn] Correctly print SSL errors. 2005-07-03 14:20:33 -07:00
hniksic
db9de5b075 [svn] Update FSF's address and copyright years. 2005-07-01 19:26:52 -07:00
hniksic
c1fb83c53b [svn] Renamed "pretty_print_address" to "print_address". 2005-06-30 13:03:18 -07:00
hniksic
4aea3747e3 [svn] Delete trailing newlines from LIST output when -S is used. 2005-06-27 17:13:44 -07:00
hniksic
2447fb9a9b [svn] Move extern declarations to .h files. 2005-06-27 11:19:22 -07:00
hniksic
319f52d756 [svn] When the download is finished, print the time the download took.
Always invoke SIZE, not only when continuing the download.
2005-06-25 17:41:09 -07:00
hniksic
e24bc5db1b [svn] Rewrite with_thousand_seps to be size-agnostic. Remove printing of separators
from sizes.
2005-06-25 16:09:29 -07:00
hniksic
002def87d2 [svn] Rename LARGE_INT to SUM_SIZE_INT, and simplify its handling. 2005-06-25 07:39:51 -07:00
hniksic
74fbb03b10 [svn] Use bool type for boolean variables and values. 2005-06-22 12:38:10 -07:00
hniksic
e911bc2943 [svn] Remove the "lockable boolean" setting for passive_ftp. 2005-06-21 18:56:02 -07:00
hniksic
277e840a0f [svn] Remove K&R support. 2005-06-19 15:34:58 -07:00
hniksic
4206f96614 [svn] Gettext-ize previously missed messages.
By Benno Schulenberg.
2005-06-15 13:26:37 -07:00
hniksic
af7e522e91 [svn] Don't clobber the file when -c is specified and the first attempt
to retrieve the file fails.
2005-05-17 05:53:08 -07:00
hniksic
6664409baa [svn] Consistently print \n at the end of the "Length" line. 2005-05-16 05:41:29 -07:00
hniksic
ee18acce0a [svn] Check for wildcards in unescaped URL path. 2005-05-08 10:52:26 -07:00
hniksic
0967c21094 [svn] Fix K&R incompatibilities reported by `gcc -Wtraditional'. 2005-05-03 08:24:30 -07:00
hniksic
c2c41a6b14 [svn] Remove unreachable "break" statements. 2005-04-28 06:52:02 -07:00
mtortonesi
e815fe81a0 [svn] Add the --user, --password, --ftp-user and --ftp-password options.
Rename the --ftp-passwd, --http-passwd and --proxy-passwd options to
--ftp-password, --http-password and --proxy-password respectively.
Deprecate the login and passwd .wgetrc commands.
2005-04-27 14:30:22 -07:00
hniksic
4cf3365fcf [svn] Open the output file in binary mode.
By Gisle Vanem.
2005-04-12 13:32:31 -07:00
hniksic
4b57f166ae [svn] Use the xzero shorthand for memset(..., 0, ...). 2005-04-01 16:41:04 -08:00
hniksic
e65ff5729a [svn] Avoid explicit 64-bit constants; construct them by multiplication at
compile-time.
2005-04-01 10:22:38 -08:00
hniksic
52aafa6d15 [svn] Replace GETALL and others with GLOB_GETALL. 2005-03-29 12:13:12 -08:00
hniksic
b9a31d78dd [svn] Support human-readable file size printing.
Don't use persistent connection over proxies.
2005-03-22 05:20:02 -08:00
hniksic
c36e9a5272 [svn] Concatenate strings using concat_strings. 2005-03-19 09:23:32 -08:00
hniksic
e2241936d0 [svn] Remove warnings under Borland C. 2005-03-05 18:11:10 -08:00
hniksic
b3363d2abd [svn] Fix escape chars in server response vulnerability. Server response is
now quoted to escape non-ASCII characters.
2005-03-04 11:34:31 -08:00
hniksic
50d143f3fe [svn] Fix a possible race condition when opening files.
Published in <87r7j6vy9g.fsf@xemacs.org>.
2005-03-04 11:26:18 -08:00
hniksic
76661bdc29 [svn] iInitialize err in getftp to suppress gcc warning. 2005-02-25 14:00:18 -08:00
hniksic
2e48de2b01 [svn] Fix infloop in ftp_expected_bytes introduced by the LFS patch. 2005-02-24 05:44:19 -08:00
hniksic
ef22bf610a [svn] Large file support added. Published in <87psyr6jn7.fsf@xemacs.org>. 2005-02-23 14:21:04 -08:00
hniksic
a0642cc62e [svn] Revamped MS console logic. Submitted by David Fritz. 2004-02-25 15:45:24 -08:00
hniksic
2c0e2b0afa [svn] Fixes by Christian Biere:
* progress.c (bar_set_params): Fixed syntax error when HAVE_ISATTY
was undefined.
* ftp.c (ftp_loop_internal): Allocate a larger buffer in case
"try" gets translated to something large.  Ditto in http_loop in
http.c.
* http.c (response_header_copy): Don't write to buf[BUFSIZE].
* ftp-opie.c (skey_response): Eliminate unnecessary string
concatenation; just call gen_md5_update twice.
2004-01-27 17:02:26 -08:00
hniksic
a8155e7bcc [svn] Correctly calculate bandwidth as total data read divided with download
time.
2003-12-05 18:32:57 -08:00
hniksic
78706dc5ea [svn] * retr.c (fd_read_body): Report the amount of data *written* as
amount_read.  This is not entirely logical, but that's what the
callers expect, and it's not easy to change.

* ftp.c (ftp_loop_internal): Ditto.

* http.c (http_loop): Be smarter about assigning restval; if we're
in the nth pass of a download, simply use the information we have
about how much data has been retrieved as restval.

* ftp.c (getftp): Ditto for FTP "REST" command.

* http.c (gethttp): When the server doesn't respect range, skip
the first RESTVAL bytes of the read body.  Never truncate the
output file.

* retr.c (fd_read_body): Support skipping initial STARTPOS octets.
2003-11-30 15:39:04 -08:00
hniksic
2f357b5eb8 [svn] Better documentation for fd_read_body args. 2003-11-29 20:41:08 -08:00
hniksic
1b2dce0493 [svn] Set con->csock to -1 where rbuf_uninitialize was previously used. 2003-11-25 16:38:20 -08:00
hniksic
d9fea91a0a [svn] Remove the "rbuf" buffering layer. Provide peeking primitives instead. 2003-11-20 17:48:11 -08:00
hniksic
0716c335a0 [svn] Renamed xread/xwrite/xclose to fd_read/fd_write/fd_close. The "x" prefix is
not appropriate because the semantics have diverged from read/write/close
too significantly.
2003-11-20 07:19:59 -08:00
hniksic
509154dc81 [svn] Use the new function retryable_socket_connect_error instead of the
CONNECT_ERROR macro.
2003-11-13 14:27:38 -08:00
hniksic
0f99d1f220 [svn] Rewrote bindport and acceptport to use a more standard calling convention. 2003-11-13 09:05:06 -08:00
hniksic
d7e592d797 [svn] Replace conaddr with socket_ip_address. 2003-11-07 18:57:51 -08:00
hniksic
ad75dd2662 [svn] Applied Dennis Smit's --preserve-permissions patch. 2003-11-06 12:33:20 -08:00
hniksic
c8e92cdbd6 [svn] Get rid of ssl_iread/ssl_iwrite. Have the SSL code register its
routines for reading and writing data.
2003-11-05 17:12:03 -08:00
hniksic
e2e9b753e4 [svn] Retired the `boolean' type. Renamed FREE_MAYBE to xfree_null and moved the
definition from wget.h to xmalloc.h.  Moved the DEFAULT_LOGFILE
define to log.h.  Moved the INFINITE_RECURSION define to recur.h.
2003-11-02 11:56:37 -08:00
hniksic
add61a2d9c [svn] Networking improvements: get rid of the MSOCK global variable,
move the sockaddr handling to connect.c, make sure Wget refreshes
the DNS lookup after it becomes stale.
2003-10-30 16:18:08 -08:00
hniksic
6f1250b1c6 [svn] Updated IPv6 code. 2003-10-29 15:13:25 -08:00
hniksic
90cb3309da [svn] Imported Mauro's IPv6 changes. 2003-10-29 10:23:56 -08:00
hniksic
3f6913663e [svn] Correctly loop through the linked list.
By Philip Stadermann.
2003-10-14 15:52:12 -07:00