Closed
Description
Feature gate: #![feature(unix_chown)]
This is a tracking issue for the chown
family of functions. These functions change the UNIX owner and group of a file or file descriptor.
Public API
pub fn chown<P: AsRef<Path>>(dir: P, uid: Option<u32>, gid: Option<u32>) -> io::Result<()> {}
pub fn fchown<F: AsFd>(fd: F, uid: Option<u32>, gid: Option<u32>) -> io::Result<()> {}
pub fn lchown<P: AsRef<Path>>(dir: P, uid: Option<u32>, gid: Option<u32>) -> io::Result<()> {}
Steps / History
- Implementation: Add chown functions to std::os::unix::fs to change the owner and group of files #88953
- Blocking issue:
fchown
takes anAsFd
by value, which prevents passing a reference.
- Blocking issue:
- Final comment period (FCP)
- Stabilization PR