mirror of
https://github.com/curl/curl.git
synced 2025-03-31 16:00:35 +08:00
fix resume when multiple files were specified
This commit is contained in:
parent
5b3069e265
commit
41362f063a
@ -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…
x
Reference in New Issue
Block a user