Skip to content

verify calls to _regularfile_getOSBackedFD are checked for -1, not 0 #2604

@trinity-1686a

Description

@trinity-1686a

Describe the issue
Some calls to _regularfile_getOSBackedFD checked for zero result, but the actual bad value is -1/OSFILE_INVALID, and 0 is a valid file descriptor.
Someone should verify if such calls still exists and fix them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: BugError or flaw producing unexpected results

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions