libcmini icon indicating copy to clipboard operation
libcmini copied to clipboard

Unable to open() a readonly file O_RDONLY

Open simonlaszcz opened this issue 2 months ago • 6 comments

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

simonlaszcz avatar May 05 '24 23:05 simonlaszcz