Merge "fix bug that passing invalid fd to fstats on win32 builds"
This commit is contained in:
commit
3f27558e29
1 changed files with 1 additions and 1 deletions
|
|
@ -240,7 +240,7 @@ static int write_data_file(int fd, const char *path, syncsendbuf *sbuf, int show
|
|||
if (show_progress) {
|
||||
// Determine local file size.
|
||||
struct stat st;
|
||||
if (fstat(lfd, &st)) {
|
||||
if (stat(path, &st)) {
|
||||
fprintf(stderr,"cannot stat '%s': %s\n", path, strerror(errno));
|
||||
return -1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue