summaryrefslogtreecommitdiffstats
path: root/adb
diff options
context:
space:
mode:
Diffstat (limited to 'adb')
-rw-r--r--adb/file_sync_client.c2
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;
}