Tracking Issue for std::fs::set_permissions_nofollow
Open
@lolbinarycat is already working on this.
Since Jun 23, 2025.
A-filesystem
A-permissions
C-tracking-issue
E-help-wanted
T-libs
- Dominant language
- Rust
- Stars
- 119k
- Forks
- 16.1k
- PR merge metrics
- PR metrics pending
Description
Feature gate: #![feature(set_permissions_nofollow)]
This is a tracking issue for the std::fs::set_permissions_nofollow function.
This function acts similarly to fs::set_permissions, except that it will never follow symlinks. This functions behavior when called on a symlink is platform-specific: on some platforms it will fail with an error, while on other platforms it may simply have no effect.
Public API
pub fn set_permissions_nofollow<P: AsRef<Path>>(path: P, perm: Permissions) -> Result<()>
Steps / History
(Remember to update the S-tracking-* label when checking boxes.)
- ACP Accepted: https://github.com/rust-lang/libs-team/issues/582
- Implementation for unix-based systems: https://github.com/rust-lang/rust/pull/142938
- Implementation for Windows: https://github.com/rust-lang/rust/pull/158168
- Final comment period (FCP)^1
- Stabilization PR
Unresolved Questions
- Currently, this is broken on Android: https://github.com/asder8215/rust/blob/c7b10b40320517fc7563cc24da0a1366c52bc2cf/library/std/src/sys/fs/unix.rs#L1887-L1897
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.