Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

posixmodule.c doesn't detect xattr support on Linux with non-glibc (e.g. musl) #101857

Closed
Assignees
gpshead
Labels
buildThe build process and cross-buildextension-modulesC modules in the Modules dirtype-bugAn unexpected behavior, bug, or error
@thesamesam

Description

@thesamesam

Bug report

posixmodule.c detects xattr support by checking for__GLIBC__ (and some other conditions) at

#if defined(HAVE_SYS_XATTR_H)&& defined(__GLIBC__)&& !defined(__FreeBSD_kernel__)&& !defined(__GNU__)
. This incorrectly excludes the musl libc,which supports xattr functionality.

On a musl system, it's easy to reproduce with:

>>> import os>>> os.listxattr Traceback (most recent call last): File "", line 1, inAttributeError: module 'os' has no attribute 'listxattr'

Your environment

Linked PRs

Metadata

Metadata

Assignees

Labels

buildThe build process and cross-buildextension-modulesC modules in the Modules dirtype-bugAn unexpected behavior, bug, or error

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp