diff options
author | Josh Gao <jmgao@google.com> | 2016-09-14 16:13:50 -0700 |
---|---|---|
committer | Josh Gao <jmgao@google.com> | 2016-09-14 17:08:22 -0700 |
commit | 94dc19ff57a2c5a09d74362d0c1a1231cc027d7f (patch) | |
tree | 3bfd36b33c192714b46bdaf8cf5b624d90528915 /adb/file_sync_client.cpp | |
parent | ffabc9651f1b81fb9dfa2388500d9aa72f2ccba0 (diff) |
adb: let `adb push` follow symlinks.
Bug: http://b/31491920
Test: touch foo; ln -s foo bar; adb push bar /data/local/tmp
Test: python test_device.py
Change-Id: I0a00b3d49fdf7206e27d66ac110b56e22449a1ad
Diffstat (limited to 'adb/file_sync_client.cpp')
-rw-r--r-- | adb/file_sync_client.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/adb/file_sync_client.cpp b/adb/file_sync_client.cpp index 56ff68c582..f1e4179c32 100644 --- a/adb/file_sync_client.cpp +++ b/adb/file_sync_client.cpp @@ -606,7 +606,7 @@ static bool sync_send(SyncConnection& sc, const char* lpath, const char* rpath, } if (st.st_size < SYNC_DATA_MAX) { std::string data; - if (!android::base::ReadFileToString(lpath, &data)) { + if (!android::base::ReadFileToString(lpath, &data, true)) { sc.Error("failed to read all of '%s': %s", lpath, strerror(errno)); return false; } |