[wget-notify] [bug #21213] -c without HEAD fails to continue
Micah Cowan
INVALID.NOREPLY at gnu.org
Mon Oct 1 12:48:33 PDT 2007
URL:
<http://savannah.gnu.org/bugs/?21213>
Summary: -c without HEAD fails to continue
Project: GNU Wget
Submitted by: micahcowan
Submitted on: Monday 10/01/2007 at 12:48
Category: None
Severity: 5 - Blocker
Priority: 5 - Normal
Status: Confirmed
Privacy: Public
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: None
Operating System: None
Reproducibility: None
Fixed Release: None
Planned Release: 1.11
Regression: None
Work Required: 0 - Hours
Patch Included: None
_______________________________________________________
Details:
http://www.mail-archive.com/wget%40sunsite.dk/msg10265.html
Changes apparently introduced with 20323 fix.
Interesting code snippets:
http.c, line 2143 ff.
/* Decide whether or not to restart. */
if (opt.always_rest
&& got_name
&& stat (hstat.local_file, &st) == 0
&& S_ISREG (st.st_mode))
/* When -c is used, continue from on-disk size. (Can't use
hstat.len even if count>1 because we don't want a failed
first attempt to clobber existing data.) */
hstat.restval = st.st_size;
http.c, line 2634 ff.
if (send_head_first)
{
got_name = true;
restart_loop = true;
}
in an older version this was
if (opt.always_rest)
{
got_name = true;
restart_loop = true;
}
Regards, J.Roderburg
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?21213>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
More information about the wget-notify
mailing list