Skip to content

Conversation

ivmarkov
Copy link
Contributor

@ivmarkov ivmarkov commented Aug 22, 2025

A regression from #142938

cc @lolbinarycat
cc @ibraheemdev

ESP-IDF (and a few other embedded Tier-3 systems) is considered cfg(unix), but it does not have the O_NOFOLLOW flag because neither of its three supported filesystems (FATFS, LitteLF and Spiffs) has symbolic links in the first place.

What this fix does is to keep the set_permissions_nofollow method available and non-failing for ESP-IDF, but it behaves as if no O_NONFOLLOW was set. This should be fine as there is nothing to follow in the first place, as there are no symbolic links there.

EDIT: Also added the same fix for Horizon, as requested by @Meziu.

@rustbot
Copy link
Collaborator

rustbot commented Aug 22, 2025

r? @Mark-Simulacrum

rustbot has assigned @Mark-Simulacrum.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Aug 22, 2025
@ivmarkov
Copy link
Contributor Author

r? @ibraheemdev

@ivmarkov ivmarkov force-pushed the fix-nofollow-espidf branch from 06971ea to 8e5b591 Compare August 22, 2025 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants