Function rustix::fs::chmodat

source · []
pub fn chmodat<P: Arg, Fd: AsFd>(dirfd: Fd, path: P, mode: Mode) -> Result<()>
Available on crate feature fs only.
Expand description

fchmodat(dirfd, path, mode, 0)—Sets file or directory permissions.

The flags argument is fixed to 0, so AT_SYMLINK_NOFOLLOW is not supported.

Platform support for this flag varies widely.

This implementation does not support O_PATH file descriptors, even on platforms where the host libc emulates it.

References