Skip to content
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

Change listxattr's list argument to [u8]. #1303

Merged
merged 1 commit into from
Jan 31, 2025
Merged

Conversation

sunfishcode
Copy link
Member

Change listxattr's list argument from [c_char] to [u8], since it's more ergonomic to use with APIs like CStr::from_bytes_with_nul.

Fixes #1218.

Change `listxattr`'s `list` argument from [`c_char`] to `[u8]`, since
it's more ergonomic to use with APIs like `CStr::from_bytes_with_nul`.

Fixes #1218.
@sunfishcode sunfishcode merged commit 7b1f638 into main Jan 31, 2025
45 checks passed
@sunfishcode sunfishcode deleted the suffishcode/listxattr branch January 31, 2025 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Painful [i8] in rustix::fs::listxattr()
1 participant