]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-101857: Allow xattr detection on musl libc (GH-101858) (#101894)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 21 May 2023 00:17:27 +0000 (17:17 -0700)
committerGitHub <noreply@github.com>
Sun, 21 May 2023 00:17:27 +0000 (00:17 +0000)
commit2e457bc202179445cbf7b3a2a96c8450f1cda72f
tree8f55fb0e2dfaf5e0ab8603cb00697531f69948a7
parentd45c1df83ee89882b50d0a48b190d87767038848
[3.11] gh-101857: Allow xattr detection on musl libc (GH-101858) (#101894)

gh-101857: Allow xattr detection on musl libc (GH-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

(cherry picked from commit 8be8101bca34b60481ec3d7ecaea4a3379fb7dbb)

Co-authored-by: Sam James <sam@gentoo.org>
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