diff options
author | Elliott Hughes <enh@google.com> | 2015-02-09 19:50:01 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2015-02-09 19:50:01 +0000 |
commit | 3f27558e29c6ebe69c56bef6bee9d6e8b26ae43b (patch) | |
tree | d110ecd49a80c63c000cf2ffbeacf2564565432f | |
parent | 5ac8b917ded904500f44c8c02b277a34eb9c14c7 (diff) | |
parent | a859219fec34ea0207c97a225c9f3fe451fc1209 (diff) | |
download | system_core-3f27558e29c6ebe69c56bef6bee9d6e8b26ae43b.zip system_core-3f27558e29c6ebe69c56bef6bee9d6e8b26ae43b.tar.gz system_core-3f27558e29c6ebe69c56bef6bee9d6e8b26ae43b.tar.bz2 |
Merge "fix bug that passing invalid fd to fstats on win32 builds"
-rw-r--r-- | adb/file_sync_client.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ 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; } |