summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Gao <jmgao@google.com>2015-11-09 15:59:50 -0800
committerJosh Gao <jmgao@google.com>2015-11-09 18:12:10 -0800
commit8d00a39eff5f4047a4a4ad007900df2bdd1c1e9a (patch)
treecdb872d4a020b8e0e8dea5e86961c55a15fdfb55
parent892f0e93007dc912f18a09fd281c73adf762277a (diff)
downloadcore-8d00a39eff5f4047a4a4ad007900df2bdd1c1e9a.tar.gz
core-8d00a39eff5f4047a4a4ad007900df2bdd1c1e9a.tar.bz2
core-8d00a39eff5f4047a4a4ad007900df2bdd1c1e9a.zip
adb: don't try to pull character or block devices.
Change-Id: I1a9e2c0097fe9c4017a9b338e812366c8e1154f0
-rw-r--r--adb/file_sync_client.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/adb/file_sync_client.cpp b/adb/file_sync_client.cpp
index 268a11f59..03b59dc4d 100644
--- a/adb/file_sync_client.cpp
+++ b/adb/file_sync_client.cpp
@@ -852,7 +852,8 @@ bool do_sync_pull(const std::vector<const char*>& srcs, const char* dst,
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) {