summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Fischer <matt.fischer@garmin.com>2010-01-04 16:18:50 -0600
committerGarmin Android technology group <android@garmin.com>2010-04-15 13:36:16 -0500
commit457d81cec12fce6e38c0dcd94d33d06036c2618a (patch)
treeb12761fae2e48fc28321469adf070a8844524347
parenta699d6256fca0336b173c524c5b3d8f7d4fcdc25 (diff)
downloadsystem_core-457d81cec12fce6e38c0dcd94d33d06036c2618a.zip
system_core-457d81cec12fce6e38c0dcd94d33d06036c2618a.tar.gz
system_core-457d81cec12fce6e38c0dcd94d33d06036c2618a.tar.bz2
Allow 'adb pull' to pull symlinked files
Change-Id: I02f31334e4ee0c7b0e7b379016629a465e711905
-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 0ebfe73..65d4941 100644
--- a/adb/file_sync_client.c
+++ b/adb/file_sync_client.c
@@ -959,7 +959,7 @@ int do_sync_pull(const char *rpath, const char *lpath)
return 1;
}
- if(S_ISREG(mode) || S_ISCHR(mode) || S_ISBLK(mode)) {
+ if(S_ISREG(mode) || S_ISLNK(mode) || S_ISCHR(mode) || S_ISBLK(mode)) {
if(stat(lpath, &st) == 0) {
if(S_ISDIR(st.st_mode)) {
/* if we're copying a remote file to a local directory,