cap_primitives::fs

Function set_symlink_permissions

Source
pub fn set_symlink_permissions(
    start: &File,
    path: &Path,
    perm: Permissions,
) -> Result<()>
Expand description

Perform a chmodat-like operation, ensuring that the resolution of the path never escapes the directory tree rooted at start, without following symlinks.