commit | 3f27558e29c6ebe69c56bef6bee9d6e8b26ae43b | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Mon Feb 09 19:50:01 2015 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Mon Feb 09 19:50:01 2015 +0000 |
tree | d110ecd49a80c63c000cf2ffbeacf2564565432f | |
parent | 5ac8b917ded904500f44c8c02b277a34eb9c14c7 [diff] | |
parent | a859219fec34ea0207c97a225c9f3fe451fc1209 [diff] |
Merge "fix bug that passing invalid fd to fstats on win32 builds"
diff --git a/adb/file_sync_client.c b/adb/file_sync_client.c index ee09d5d..f93c876 100644 --- a/adb/file_sync_client.c +++ b/adb/file_sync_client.c
@@ -240,7 +240,7 @@ 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; }