rust-lang / rust-lang/rust

Tracking Issue for std::fs::set_permissions_nofollow

Open
#141,607 12 comments 0 reactions 1 assignee View on GitHub

@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.)

Unresolved Questions

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.