Changes the owner of a file without following symbolic links.
fn change_owner_no_follow<P>(path: P, user: u32, group: u32) -> Result<(), Errno>
where P: ToCString,| Name | Description |
|---|---|
| path | The path of the file whose owner will be changed. |
| user | The user id of the new owner. |
| group | The group id of the new owner. |
If the path refers to a symbolic link, the owner of the link will be changed.
If the path is relative, it will be interpreted relative to the current working directory.