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

Commit 8d00a39e authored by Josh Gao's avatar Josh Gao
Browse files

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

Change-Id: I1a9e2c0097fe9c4017a9b338e812366c8e1154f0
parent 892f0e93
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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) {