Skip to content

[3.12] gh-107959: clarify Unix-availability of os.lchmod() (GH-107960) #113066

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 13, 2023

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Dec 13, 2023

POSIX specifies that implementations are not required to support changing the
file mode of symbolic links, but may do so.
Consequently, lchmod() is not part of POSIX (but mentioned for implementations
which do support the above).

The current wording of the availability of os.lchmod() is rather vague and
improved to clearly tell which POSIX/Unix/BSD-like support the function in
general (those that support changing the file mode of symbolic links).
Further, some examples of major implementations are added.

Data for the BSDs taken from their online manpages.

(cherry picked from commit f14e3d5)

Co-authored-by: Christoph Anton Mitterer [email protected]
Signed-off-by: Christoph Anton Mitterer [email protected]
Co-authored-by: Adam Turner [email protected]


📚 Documentation preview 📚: https://cpython-previews--113066.org.readthedocs.build/

…-107960)

POSIX specifies that implementations are not required to support changing the
file mode of symbolic links, but may do so.
Consequently, `lchmod()` is not part of POSIX (but mentioned for implementations
which do support the above).

The current wording of the availability of `os.lchmod()` is rather vague and
improved to clearly tell which POSIX/Unix/BSD-like support the function in
general (those that support changing the file mode of symbolic links).
Further, some examples of major implementations are added.

Data for the BSDs taken from their online manpages.

(cherry picked from commit f14e3d5)

Co-authored-by: Christoph Anton Mitterer <[email protected]>
Signed-off-by: Christoph Anton Mitterer <[email protected]>
Co-authored-by: Adam Turner <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir skip news
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants