Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 420ad788 authored by Elliott Hughes's avatar Elliott Hughes Committed by Android Git Automerger
Browse files

am 167c1dff: am 3f27558e: Merge "fix bug that passing invalid fd to fstats on win32 builds"

* commit '167c1dff':
  fix bug that passing invalid fd to fstats on win32 builds
parents 2efbf02a 167c1dff
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
        }