mirror of
https://github.com/curl/curl.git
synced 2026-07-24 12:27:16 +03:00
fix resume when multiple files were specified
This commit is contained in:
parent
5b3069e265
commit
41362f063a
1 changed files with 4 additions and 3 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue