Merge "adb: don\'t try to pull character or block devices." am: 0bb1ce06ea
am: 85a4b33302
* commit '85a4b333020ecf7bf1b5d25cf741ac607ed3d905':
adb: don't try to pull character or block devices.
diff --git a/adb/file_sync_client.cpp b/adb/file_sync_client.cpp
index d71ca8d..3322763 100644
--- a/adb/file_sync_client.cpp
+++ b/adb/file_sync_client.cpp
@@ -862,7 +862,8 @@
continue;
}
- if (S_ISREG(mode) || S_ISLNK(mode) || S_ISCHR(mode) || S_ISBLK(mode)) {
+ if (S_ISREG(mode) || S_ISLNK(mode)) {
+ // TODO(b/25601283): symlinks shouldn't be handled as files.
std::string path_holder;
struct stat st;
if (stat(dst_path, &st) == 0) {