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

fix: Open json modules in read only mode #242

Merged
merged 1 commit into from
Mar 27, 2023
Merged

Conversation

MatejKastak
Copy link
Member

We had some cases when the modules were installed with read only permissions and yaramod would fail to open them.

Also we expect no writes to the modules json.

I removed the std::ios::out which opens the file in write mode. The default configuration is std::ios_base::in, which opens the file in read mode.

We had some cases when the modules were installed with read only
permissions and yaramod would fail to open them.

Also we expect no writes to the modules json.

I removed the `std::ios::out` which opens the file in write mode. The
default configuration is `std::ios_base::in`, which opens the file in
read mode.
Copy link
Contributor

@mienkofax mienkofax left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍.

@MatejKastak MatejKastak merged commit 2779af7 into master Mar 27, 2023
@MatejKastak MatejKastak deleted the fix-json-permissions branch March 27, 2023 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants