commit | 2bae456b2c551bb972386842fbbbff1717e32413 | [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 | 315a19adfbf835234b91b6ae3d52fa8bc9369324 [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; }