Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "radare2: update from 4.5.1 to 5.4.0 (#6149)"
This reverts commit e80c863.
- Loading branch information
Showing
2 changed files
with
25 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
From 6f963691d4cb1ac0458212160ceebda35944e7c3 Mon Sep 17 00:00:00 2001 | ||
From: devnexen <devnexen@gmail.com> | ||
Date: Mon, 23 Nov 2020 09:28:36 +0000 | ||
Subject: Merge upstream patch for using proper team_id/pid_t | ||
|
||
|
||
diff --git a/libr/util/sys.c b/libr/util/sys.c | ||
index f2dc348..6dbdc67 100644 | ||
--- a/libr/util/sys.c | ||
+++ b/libr/util/sys.c | ||
@@ -1212,7 +1212,7 @@ R_API char *r_sys_pid_to_path(int pid) { | ||
int32_t group = 0; | ||
image_info ii; | ||
|
||
- while (get_next_image_info (0, &group, &ii) == B_OK) { | ||
+ while (get_next_image_info ((team_id)pid, &group, &ii) == B_OK) { | ||
if (ii.type == B_APP_IMAGE) { | ||
break; | ||
} | ||
-- | ||
2.28.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters