Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 457d81ce authored by Matt Fischer's avatar Matt Fischer Committed by Garmin Android technology group
Browse files

Allow 'adb pull' to pull symlinked files

Change-Id: I02f31334e4ee0c7b0e7b379016629a465e711905
parent a699d625
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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,