Skip to content

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 mail@christoph.anton.mitterer.name
Signed-off-by: Christoph Anton Mitterer mail@christoph.anton.mitterer.name
Co-authored-by: Adam Turner 9087854+AA-Turner@users.noreply.github.com


📚 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 <mail@christoph.anton.mitterer.name>
Signed-off-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
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