mortbopet / Ripes

A graphical processor simulator and assembly editor for the RISC-V ISA
https://ripes.me/
MIT License
2.49k stars 270 forks source link

Fix O_CREAT flag in open syscall #330

Closed raccog closed 8 months ago

raccog commented 8 months ago

In the open syscall, a new file would be created if the opened file didn't exist and the O_CREAT flag was NOT set.

This has been fixed to create a new file only if the O_CREAT flag IS set. This matches the original Unix flag.