{"action":"created","comment":{"url":"https://api.github.com/repos/radare/radare2/pulls/comments/58301647","id":58301647,"diff_hunk":"@@ -1259,13 +1259,44 @@ static int r_debug_desc_native_open (const char *path) {\n \treturn 0;\n }\n \n+static int r_debug_setup_ownership (int fd, RDebug *dbg) {\n+\tRDebugInfo *info = r_debug_info (dbg, \"\");\n+\n+\tif (!info) {\n+\t\teprintf (\"Error while getting debug info.\\n\");\n+\t\treturn -1;\n+\t}\n+\n+\tif (fchown (fd, info->uid, info->gid) != 0) {","path":"libr/debug/p/debug_native.c","position":12,"original_position":12,"commit_id":"63cb4d8a075dd6846762e9b52041ccb85fe8fbfd","original_commit_id":"63cb4d8a075dd6846762e9b52041ccb85fe8fbfd","user":{"login":"radare","id":917142,"avatar_url":"https://avatars.githubusercontent.com/u/917142?v=3","gravatar_id":"","url":"https://api.github.com/users/radare","html_url":"https://github.com/radare","followers_url":"https://api.github.com/users/radare/followers","following_url":"https://api.github.com/users/radare/following{/other_user}","gists_url":"https://api.github.com/users/radare/gists{/gist_id}","starred_url":"https://api.github.com/users/radare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/radare/subscriptions","organizations_url":"https://api.github.com/users/radare/orgs","repos_url":"https://api.github.com/users/radare/repos","events_url":"https://api.github.com/users/radare/events{/privacy}","received_events_url":"https://api.github.com/users/radare/received_events","type":"User","site_admin":false},"body":"no need to fail if ownership change fails. it's ok to save the file as r2 the user running r2. in fact, changing it can be problematic for the user in some environments","created_at":"2016-04-02T23:18:09Z","updated_at":"2016-04-02T23:18:09Z","html_url":"https://github.com/radare/radare2/pull/4407#discussion_r58301647","pull_request_url":"https://api.github.com/repos/radare/radare2/pulls/4407","_links":{"self":{"href":"https://api.github.com/repos/radare/radare2/pulls/comments/58301647"},"html":{"href":"https://github.com/radare/radare2/pull/4407#discussion_r58301647"},"pull_request":{"href":"https://api.github.com/repos/radare/radare2/pulls/4407"}}},"pull_request":{"url":"https://api.github.com/repos/radare/radare2/pulls/4407","id":63917620,"html_url":"https://github.com/radare/radare2/pull/4407","diff_url":"https://github.com/radare/radare2/pull/4407.diff","patch_url":"https://github.com/radare/radare2/pull/4407.patch","issue_url":"https://api.github.com/repos/radare/radare2/issues/4407","number":4407,"state":"open","locked":false,"title":"Mach0 coredump generation (WIP) - Revised","user":{"login":"KuroAku","id":4370886,"avatar_url":"https://avatars.githubusercontent.com/u/4370886?v=3","gravatar_id":"","url":"https://api.github.com/users/KuroAku","html_url":"https://github.com/KuroAku","followers_url":"https://api.github.com/users/KuroAku/followers","following_url":"https://api.github.com/users/KuroAku/following{/other_user}","gists_url":"https://api.github.com/users/KuroAku/gists{/gist_id}","starred_url":"https://api.github.com/users/KuroAku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KuroAku/subscriptions","organizations_url":"https://api.github.com/users/KuroAku/orgs","repos_url":"https://api.github.com/users/KuroAku/repos","events_url":"https://api.github.com/users/KuroAku/events{/privacy}","received_events_url":"https://api.github.com/users/KuroAku/received_events","type":"User","site_admin":false},"body":">The code for solving the mach0 part of radare#4124 so far.\r\nIs very WIP because I started late to make the microtask and when I started, I started doing it all wrong (see core.c in the commits).\r\n\r\nAlso, cleaned up the code and removed core.c.","created_at":"2016-03-23T17:05:12Z","updated_at":"2016-04-02T23:18:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3a971c9bf14a88161c6d181ab88fb18ee48b5f9a","assignee":null,"milestone":{"url":"https://api.github.com/repos/radare/radare2/milestones/11","html_url":"https://github.com/radare/radare2/milestones/0.10.2","labels_url":"https://api.github.com/repos/radare/radare2/milestones/11/labels","id":1583924,"number":11,"title":"0.10.2","description":"","creator":{"login":"radare","id":917142,"avatar_url":"https://avatars.githubusercontent.com/u/917142?v=3","gravatar_id":"","url":"https://api.github.com/users/radare","html_url":"https://github.com/radare","followers_url":"https://api.github.com/users/radare/followers","following_url":"https://api.github.com/users/radare/following{/other_user}","gists_url":"https://api.github.com/users/radare/gists{/gist_id}","starred_url":"https://api.github.com/users/radare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/radare/subscriptions","organizations_url":"https://api.github.com/users/radare/orgs","repos_url":"https://api.github.com/users/radare/repos","events_url":"https://api.github.com/users/radare/events{/privacy}","received_events_url":"https://api.github.com/users/radare/received_events","type":"User","site_admin":false},"open_issues":34,"closed_issues":75,"state":"open","created_at":"2016-02-15T18:10:41Z","updated_at":"2016-04-01T17:39:41Z","due_on":"2016-04-10T22:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/radare/radare2/pulls/4407/commits","review_comments_url":"https://api.github.com/repos/radare/radare2/pulls/4407/comments","review_comment_url":"https://api.github.com/repos/radare/radare2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/radare/radare2/issues/4407/comments","statuses_url":"https://api.github.com/repos/radare/radare2/statuses/63cb4d8a075dd6846762e9b52041ccb85fe8fbfd","head":{"label":"KuroAku:core","ref":"core","sha":"63cb4d8a075dd6846762e9b52041ccb85fe8fbfd","user":{"login":"KuroAku","id":4370886,"avatar_url":"https://avatars.githubusercontent.com/u/4370886?v=3","gravatar_id":"","url":"https://api.github.com/users/KuroAku","html_url":"https://github.com/KuroAku","followers_url":"https://api.github.com/users/KuroAku/followers","following_url":"https://api.github.com/users/KuroAku/following{/other_user}","gists_url":"https://api.github.com/users/KuroAku/gists{/gist_id}","starred_url":"https://api.github.com/users/KuroAku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KuroAku/subscriptions","organizations_url":"https://api.github.com/users/KuroAku/orgs","repos_url":"https://api.github.com/users/KuroAku/repos","events_url":"https://api.github.com/users/KuroAku/events{/privacy}","received_events_url":"https://api.github.com/users/KuroAku/received_events","type":"User","site_admin":false},"repo":{"id":52153145,"name":"radare2","full_name":"KuroAku/radare2","owner":{"login":"KuroAku","id":4370886,"avatar_url":"https://avatars.githubusercontent.com/u/4370886?v=3","gravatar_id":"","url":"https://api.github.com/users/KuroAku","html_url":"https://github.com/KuroAku","followers_url":"https://api.github.com/users/KuroAku/followers","following_url":"https://api.github.com/users/KuroAku/following{/other_user}","gists_url":"https://api.github.com/users/KuroAku/gists{/gist_id}","starred_url":"https://api.github.com/users/KuroAku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KuroAku/subscriptions","organizations_url":"https://api.github.com/users/KuroAku/orgs","repos_url":"https://api.github.com/users/KuroAku/repos","events_url":"https://api.github.com/users/KuroAku/events{/privacy}","received_events_url":"https://api.github.com/users/KuroAku/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/KuroAku/radare2","description":"unix-like reverse engineering framework and commandline tools","fork":true,"url":"https://api.github.com/repos/KuroAku/radare2","forks_url":"https://api.github.com/repos/KuroAku/radare2/forks","keys_url":"https://api.github.com/repos/KuroAku/radare2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KuroAku/radare2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KuroAku/radare2/teams","hooks_url":"https://api.github.com/repos/KuroAku/radare2/hooks","issue_events_url":"https://api.github.com/repos/KuroAku/radare2/issues/events{/number}","events_url":"https://api.github.com/repos/KuroAku/radare2/events","assignees_url":"https://api.github.com/repos/KuroAku/radare2/assignees{/user}","branches_url":"https://api.github.com/repos/KuroAku/radare2/branches{/branch}","tags_url":"https://api.github.com/repos/KuroAku/radare2/tags","blobs_url":"https://api.github.com/repos/KuroAku/radare2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KuroAku/radare2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KuroAku/radare2/git/refs{/sha}","trees_url":"https://api.github.com/repos/KuroAku/radare2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KuroAku/radare2/statuses/{sha}","languages_url":"https://api.github.com/repos/KuroAku/radare2/languages","stargazers_url":"https://api.github.com/repos/KuroAku/radare2/stargazers","contributors_url":"https://api.github.com/repos/KuroAku/radare2/contributors","subscribers_url":"https://api.github.com/repos/KuroAku/radare2/subscribers","subscription_url":"https://api.github.com/repos/KuroAku/radare2/subscription","commits_url":"https://api.github.com/repos/KuroAku/radare2/commits{/sha}","git_commits_url":"https://api.github.com/repos/KuroAku/radare2/git/commits{/sha}","comments_url":"https://api.github.com/repos/KuroAku/radare2/comments{/number}","issue_comment_url":"https://api.github.com/repos/KuroAku/radare2/issues/comments{/number}","contents_url":"https://api.github.com/repos/KuroAku/radare2/contents/{+path}","compare_url":"https://api.github.com/repos/KuroAku/radare2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KuroAku/radare2/merges","archive_url":"https://api.github.com/repos/KuroAku/radare2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KuroAku/radare2/downloads","issues_url":"https://api.github.com/repos/KuroAku/radare2/issues{/number}","pulls_url":"https://api.github.com/repos/KuroAku/radare2/pulls{/number}","milestones_url":"https://api.github.com/repos/KuroAku/radare2/milestones{/number}","notifications_url":"https://api.github.com/repos/KuroAku/radare2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KuroAku/radare2/labels{/name}","releases_url":"https://api.github.com/repos/KuroAku/radare2/releases{/id}","deployments_url":"https://api.github.com/repos/KuroAku/radare2/deployments","created_at":"2016-02-20T12:52:26Z","updated_at":"2016-02-20T12:52:39Z","pushed_at":"2016-04-02T22:51:08Z","git_url":"git://github.com/KuroAku/radare2.git","ssh_url":"git@github.com:KuroAku/radare2.git","clone_url":"https://github.com/KuroAku/radare2.git","svn_url":"https://github.com/KuroAku/radare2","homepage":"http://www.radare.org/","size":56366,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"radare:master","ref":"master","sha":"0c409d52e89fe027998c00a88fe5209e7ae7aa0f","user":{"login":"radare","id":917142,"avatar_url":"https://avatars.githubusercontent.com/u/917142?v=3","gravatar_id":"","url":"https://api.github.com/users/radare","html_url":"https://github.com/radare","followers_url":"https://api.github.com/users/radare/followers","following_url":"https://api.github.com/users/radare/following{/other_user}","gists_url":"https://api.github.com/users/radare/gists{/gist_id}","starred_url":"https://api.github.com/users/radare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/radare/subscriptions","organizations_url":"https://api.github.com/users/radare/orgs","repos_url":"https://api.github.com/users/radare/repos","events_url":"https://api.github.com/users/radare/events{/privacy}","received_events_url":"https://api.github.com/users/radare/received_events","type":"User","site_admin":false},"repo":{"id":4869294,"name":"radare2","full_name":"radare/radare2","owner":{"login":"radare","id":917142,"avatar_url":"https://avatars.githubusercontent.com/u/917142?v=3","gravatar_id":"","url":"https://api.github.com/users/radare","html_url":"https://github.com/radare","followers_url":"https://api.github.com/users/radare/followers","following_url":"https://api.github.com/users/radare/following{/other_user}","gists_url":"https://api.github.com/users/radare/gists{/gist_id}","starred_url":"https://api.github.com/users/radare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/radare/subscriptions","organizations_url":"https://api.github.com/users/radare/orgs","repos_url":"https://api.github.com/users/radare/repos","events_url":"https://api.github.com/users/radare/events{/privacy}","received_events_url":"https://api.github.com/users/radare/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/radare/radare2","description":"unix-like reverse engineering framework and commandline tools","fork":false,"url":"https://api.github.com/repos/radare/radare2","forks_url":"https://api.github.com/repos/radare/radare2/forks","keys_url":"https://api.github.com/repos/radare/radare2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/radare/radare2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/radare/radare2/teams","hooks_url":"https://api.github.com/repos/radare/radare2/hooks","issue_events_url":"https://api.github.com/repos/radare/radare2/issues/events{/number}","events_url":"https://api.github.com/repos/radare/radare2/events","assignees_url":"https://api.github.com/repos/radare/radare2/assignees{/user}","branches_url":"https://api.github.com/repos/radare/radare2/branches{/branch}","tags_url":"https://api.github.com/repos/radare/radare2/tags","blobs_url":"https://api.github.com/repos/radare/radare2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/radare/radare2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/radare/radare2/git/refs{/sha}","trees_url":"https://api.github.com/repos/radare/radare2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/radare/radare2/statuses/{sha}","languages_url":"https://api.github.com/repos/radare/radare2/languages","stargazers_url":"https://api.github.com/repos/radare/radare2/stargazers","contributors_url":"https://api.github.com/repos/radare/radare2/contributors","subscribers_url":"https://api.github.com/repos/radare/radare2/subscribers","subscription_url":"https://api.github.com/repos/radare/radare2/subscription","commits_url":"https://api.github.com/repos/radare/radare2/commits{/sha}","git_commits_url":"https://api.github.com/repos/radare/radare2/git/commits{/sha}","comments_url":"https://api.github.com/repos/radare/radare2/comments{/number}","issue_comment_url":"https://api.github.com/repos/radare/radare2/issues/comments{/number}","contents_url":"https://api.github.com/repos/radare/radare2/contents/{+path}","compare_url":"https://api.github.com/repos/radare/radare2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/radare/radare2/merges","archive_url":"https://api.github.com/repos/radare/radare2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/radare/radare2/downloads","issues_url":"https://api.github.com/repos/radare/radare2/issues{/number}","pulls_url":"https://api.github.com/repos/radare/radare2/pulls{/number}","milestones_url":"https://api.github.com/repos/radare/radare2/milestones{/number}","notifications_url":"https://api.github.com/repos/radare/radare2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/radare/radare2/labels{/name}","releases_url":"https://api.github.com/repos/radare/radare2/releases{/id}","deployments_url":"https://api.github.com/repos/radare/radare2/deployments","created_at":"2012-07-03T07:42:26Z","updated_at":"2016-04-02T18:03:27Z","pushed_at":"2016-04-02T23:15:54Z","git_url":"git://github.com/radare/radare2.git","ssh_url":"git@github.com:radare/radare2.git","clone_url":"https://github.com/radare/radare2.git","svn_url":"https://github.com/radare/radare2","homepage":"http://www.radare.org/","size":72681,"stargazers_count":2436,"watchers_count":2436,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":536,"mirror_url":null,"open_issues_count":676,"forks":536,"open_issues":676,"watchers":2436,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/radare/radare2/pulls/4407"},"html":{"href":"https://github.com/radare/radare2/pull/4407"},"issue":{"href":"https://api.github.com/repos/radare/radare2/issues/4407"},"comments":{"href":"https://api.github.com/repos/radare/radare2/issues/4407/comments"},"review_comments":{"href":"https://api.github.com/repos/radare/radare2/pulls/4407/comments"},"review_comment":{"href":"https://api.github.com/repos/radare/radare2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/radare/radare2/pulls/4407/commits"},"statuses":{"href":"https://api.github.com/repos/radare/radare2/statuses/63cb4d8a075dd6846762e9b52041ccb85fe8fbfd"}}}}