mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
Don't append to an existing .listing when --continue is used. Fixes bug #22825.
This commit is contained in:
parent
8179bb520d
commit
9d5b9daf06
@ -1,3 +1,8 @@
|
||||
2008-04-11 Micah Cowan <micah@cowan.name>
|
||||
|
||||
* wget.texi <Contributors>: Added Julien Buty, Alexander
|
||||
Dergachev, and Rabin Vincent.
|
||||
|
||||
2008-03-24 Micah Cowan <micah@cowan.name>
|
||||
|
||||
* wget.texi <Types of Fields>: Mentioned various caveats in the
|
||||
|
@ -3770,6 +3770,7 @@ Paul Bludov,
|
||||
Daniel Bodea,
|
||||
Mark Boyns,
|
||||
John Burden,
|
||||
Julien Buty,
|
||||
Wanderlei Cavassin,
|
||||
Gilles Cedoc,
|
||||
Tim Charron,
|
||||
@ -3785,6 +3786,7 @@ Andreas Damm,
|
||||
Ahmon Dancy,
|
||||
Andrew Davison,
|
||||
Bertrand Demiddelaer,
|
||||
Alexander Dergachev,
|
||||
Andrew Deryabin,
|
||||
Ulrich Drepper,
|
||||
Marc Duponcheel,
|
||||
@ -3938,6 +3940,7 @@ Philipp Thomas,
|
||||
Mauro Tortonesi,
|
||||
Dave Turner,
|
||||
Gisle Vanem,
|
||||
Rabin Vincent,
|
||||
Russell Vincent,
|
||||
@iftex
|
||||
@v{Z}eljko Vrba,
|
||||
|
@ -4,6 +4,13 @@
|
||||
"unknown" value for the attempted allocation size.
|
||||
* utils.c (aprintf): Now calls memfatal, instead of aborting.
|
||||
|
||||
2008-04-11 Micah Cowan <micah@cowan.name>
|
||||
|
||||
* ftp.c (getftp, ftp_loop_internal): Don't append to an existing
|
||||
.listing when --continue is used. Fixes bug #22825. Thanks to
|
||||
Rabin Vincent <rabin@rab.in> for pointing the way with a
|
||||
suggested fix!
|
||||
|
||||
2008-03-19 Micah Cowan <micah@cowan.name>
|
||||
|
||||
* utils.c (test_dir_matches_p): More tests related for
|
||||
|
@ -918,7 +918,7 @@ Error in server response, closing control connection.\n"));
|
||||
if (opt.backups)
|
||||
rotate_backups (con->target);
|
||||
|
||||
if (restval)
|
||||
if (restval && !(con->cmd & DO_LIST))
|
||||
fp = fopen (con->target, "ab");
|
||||
else if (opt.noclobber || opt.always_rest || opt.timestamping || opt.dirstruct
|
||||
|| opt.output_document)
|
||||
@ -1141,7 +1141,9 @@ ftp_loop_internal (struct url *u, struct fileinfo *f, ccon *con)
|
||||
}
|
||||
|
||||
/* Decide whether or not to restart. */
|
||||
if (opt.always_rest
|
||||
if (con->cmd & DO_LIST)
|
||||
restval = 0;
|
||||
else if (opt.always_rest
|
||||
&& stat (locf, &st) == 0
|
||||
&& S_ISREG (st.st_mode))
|
||||
/* When -c is used, continue from on-disk size. (Can't use
|
||||
|
Loading…
Reference in New Issue
Block a user