Skip to content

closefrom check is too strict #112970

Closed
Closed
@thesamesam

Description

@thesamesam

Bug report

Bug description:

closefrom(3) is available with >=glibc-2.34 on Linux (and Hurd, but, well...)

The check in Python/fileutils.c is a bit too strict, as it hardcodes FreeBSD. This excludes both the aforementioned systems but also other BSDs where I believe it's available.

CPython versions tested on:

CPython main branch

Operating systems tested on:

Linux

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions