]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-101857: Allow xattr detection on musl libc (#101858)
authorSam James <sam@gentoo.org>
Tue, 14 Feb 2023 07:21:58 +0000 (07:21 +0000)
committerGitHub <noreply@github.com>
Tue, 14 Feb 2023 07:21:58 +0000 (23:21 -0800)
commit8be8101bca34b60481ec3d7ecaea4a3379fb7dbb
treece3ca605afc7ee4c359f2cbc6b5ac9a15257b69f
parent928752ce4c23f47d3175dd47ecacf08d86a99c9d
gh-101857: Allow xattr detection on musl libc (#101858)

Previously, we checked exclusively for `__GLIBC__` (AND'd with some other
conditions). Checking for `__linux__` instead should be fine.

This fixes using e.g. `os.listxattr()` on systems using musl libc.

Bug: https://bugs.gentoo.org/894130

Co-authored-by: Gregory P. Smith <greg@krypto.org>
Misc/NEWS.d/next/Core and Builtins/2023-02-12-22-40-22.gh-issue-101857._bribG.rst [new file with mode: 0644]
Modules/posixmodule.c