Skip to content

Fix renameat_with with flags on Android.#892

Merged
sunfishcode merged 1 commit intomainfrom
sunfishcode/android-renameat2
Oct 23, 2023
Merged

Fix renameat_with with flags on Android.#892
sunfishcode merged 1 commit intomainfrom
sunfishcode/android-renameat2

Conversation

@sunfishcode
Copy link
Member

When renameat_with is passed non-zero flags, fall back to the syscall! macro on ABIs such as Android where libc has a renameat but not a renameat2.

Fixes Stebalien/tempfile#259.

When `renameat_with` is passed non-zero flags, fall back to the
`syscall!` macro on ABIs such as Android where libc has a `renameat` but
not a `renameat2`.

Fixes Stebalien/tempfile#259.
@sunfishcode sunfishcode merged commit e2314b7 into main Oct 23, 2023
@sunfishcode sunfishcode deleted the sunfishcode/android-renameat2 branch October 23, 2023 23:51
@sunfishcode
Copy link
Member Author

This is now released in rustix 0.38.21.

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.

NamedTempFile::persist_noclobber panicks on Android

1 participant