Skip to content

Commit

Permalink
Honor r2 -n with frida:// targets ##io
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Oct 17, 2023
1 parent b2de228 commit c887ed5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libr/main/radare2.c
Original file line number Diff line number Diff line change
Expand Up @@ -1455,6 +1455,9 @@ R_API int r_main_radare2(int argc, const char **argv) {
filepath = mr.file? strstr (mr.file, "://"): NULL;
filepath = filepath ? filepath + 3 : mr.pfile;
}
if (r_str_startswith (mr.pfile, "frida://")) {
r_core_cmd0 (r, ".:init");
}
if (r->io->desc && mr.iod && (mr.iod->fd == r->io->desc->fd) && mr.iod->name) {
filepath = mr.iod->name;
}
Expand Down

0 comments on commit c887ed5

Please sign in to comment.