Skip to content

Commit

Permalink
fix: open with O_RDONLY
Browse files Browse the repository at this point in the history
  • Loading branch information
desbma committed Jan 30, 2025
1 parent 16345ae commit 8014c66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/summarize/handlers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ fn handle_open(
{
actions.push(ProgramAction::Write(path.clone()));
}
if !flags_val.is_flag_set("O_WRONLY") {
if flags_val.is_flag_set("O_RDONLY") || !flags_val.is_flag_set("O_WRONLY") {
actions.push(ProgramAction::Read(path));
}
Ok(())
Expand Down

0 comments on commit 8014c66

Please sign in to comment.