Skip to content
Snippets Groups Projects
Commit 41362f06 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

fix resume when multiple files were specified

parent 5b3069e2
No related branches found
No related tags found
No related merge requests found
......@@ -2505,11 +2505,12 @@ operate(struct Configurable *config, int argc, char *argv[])
struct stat fileinfo;
/*VMS?? -- Danger, the filesize is only valid for stream files */
if(0 == stat(outfile, &fileinfo)) {
if(0 == stat(outfile, &fileinfo))
/* set offset to current file size: */
config->resume_from = fileinfo.st_size;
}
/* else let offset remain 0 */
else
/* let offset be 0 */
config->resume_from = 0;
}
if(config->resume_from) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment