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

Commit 85a4b333 authored by Josh Gao's avatar Josh Gao Committed by android-build-merger
Browse files

Merge "adb: don\'t try to pull character or block devices."

am: 0bb1ce06

* commit '0bb1ce06':
  adb: don't try to pull character or block devices.
parents 234dbb84 0bb1ce06
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -862,7 +862,8 @@ bool do_sync_pull(const std::vector<const char*>& srcs, const char* dst,
            continue;
            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;
            std::string path_holder;
            struct stat st;
            struct stat st;
            if (stat(dst_path, &st) == 0) {
            if (stat(dst_path, &st) == 0) {