Skip to content

Unable to open() a readonly file O_RDONLY #125

@simonlaszcz

Description

@simonlaszcz

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions