Function lrs::syscall::fchownat

Changes the owner of a file relative to a directory.

Syntax

fn fchownat(dir: i32, path: &CStr, user: u32, group: u32, flags: i32) -> i32

Arguments

NameDescription
dir

The directory relative to which relative paths are interpreted.

path

The path of the file.

user

The new user owner.

group
flags

Flags to use while changing the owner.

Return value

Returns success or an error value.

See also