mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
[svn] Make sure hstat.no_truncate gets properly initialized.
Published in <sxspudk6pdl.fsf@florida.arsdigita.de>.
This commit is contained in:
parent
50980de841
commit
105627124e
@ -1,3 +1,10 @@
|
|||||||
|
2001-05-08 Hrvoje Niksic <hniksic@arsdigita.com>
|
||||||
|
|
||||||
|
* http.c (http_loop): Reset no_truncate before deciding whether to
|
||||||
|
set it.
|
||||||
|
(gethttp): Further clarify "-c conflicts with existing file" error
|
||||||
|
message, based on input from Herold Heiko.
|
||||||
|
|
||||||
2001-05-07 Hrvoje Niksic <hniksic@arsdigita.com>
|
2001-05-07 Hrvoje Niksic <hniksic@arsdigita.com>
|
||||||
|
|
||||||
* http.c (http_loop): If restval is set, set no_truncate to 1
|
* http.c (http_loop): If restval is set, set no_truncate to 1
|
||||||
|
@ -1211,7 +1211,7 @@ Accept: %s\r\n\
|
|||||||
_("\
|
_("\
|
||||||
\n\
|
\n\
|
||||||
The server does not support continued downloads, which conflicts with `-c'.\n\
|
The server does not support continued downloads, which conflicts with `-c'.\n\
|
||||||
Refusing to truncate `%s'.\n\n"), u->local);
|
Refusing to truncate existing file `%s'.\n\n"), u->local);
|
||||||
FREE_MAYBE (type);
|
FREE_MAYBE (type);
|
||||||
FREE_MAYBE (all_headers);
|
FREE_MAYBE (all_headers);
|
||||||
CLOSE_INVALIDATE (sock);
|
CLOSE_INVALIDATE (sock);
|
||||||
@ -1522,6 +1522,7 @@ File `%s' already there, will not retrieve.\n"), u->local);
|
|||||||
/* In `-c' is used and the file is existing and non-empty,
|
/* In `-c' is used and the file is existing and non-empty,
|
||||||
refuse to truncate it if the server doesn't support continued
|
refuse to truncate it if the server doesn't support continued
|
||||||
downloads. */
|
downloads. */
|
||||||
|
hstat.no_truncate = 0;
|
||||||
if (opt.always_rest && hstat.restval)
|
if (opt.always_rest && hstat.restval)
|
||||||
hstat.no_truncate = 1;
|
hstat.no_truncate = 1;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user