Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow opening read-only files (e.g. system binaries) #196

Merged
merged 1 commit into from
Jul 11, 2017
Merged

Allow opening read-only files (e.g. system binaries) #196

merged 1 commit into from
Jul 11, 2017

Conversation

danimo
Copy link
Contributor

@danimo danimo commented Jul 3, 2017

No description provided.

@radare
Copy link
Contributor

radare commented Jul 3, 2017 via email

@danimo
Copy link
Contributor Author

danimo commented Jul 3, 2017

and by "opening r/w", you mean opening a temporary copy?

@danimo
Copy link
Contributor Author

danimo commented Jul 3, 2017

Anyway, my primary scratch was that opening a read-only file currently fails hard. If the r2 API provides for a solution already, I'm happy to use that instead.

@radare
Copy link
Contributor

radare commented Jul 3, 2017 via email

@danimo
Copy link
Contributor Author

danimo commented Jul 3, 2017

how? if I try to open something in /usr/bin that I do not have write access to, the open call with rw flags will fail.

@radare
Copy link
Contributor

radare commented Jul 3, 2017 via email

@danimo
Copy link
Contributor Author

danimo commented Jul 3, 2017

Somehow there's a misunderstanding about this patch: I didn't want to edit the file, just look at it. However, without this patch, iaito will silently fail to open a file that it cannot write to. I did not want to edit the file. You were the one to bring up the option to open those files rw :)

@trufae
Copy link
Contributor

trufae commented Jul 3, 2017 via email

@radare
Copy link
Contributor

radare commented Jul 11, 2017

well, lets merge this but thats not correct, because iaito should open in readonly by default and add a combobox in the open dialog to choose rw mode

@radare radare merged commit 76f3cc0 into hteso:master Jul 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants