libcmini
libcmini copied to clipboard
Unable to open() a readonly file O_RDONLY
Given a write protected regular file (e.g. with st_mode = 33024), the following fails:
fd = open(fname, O_RDONLY, 0)
On return fd is -1 and errno is EACCESS (36)
Tested on TOS 2.06