Skip to main content

do_chmod

Function do_chmod 

Source
fn do_chmod(
    r: &Req<'_>,
    dirfd: i32,
    path: &[u8],
    mode: i64,
    flags: i64,
) -> Result<Outcome, i32>
Expand description

chmod/fchmodat/fchmodat2, on the object’s /proc/self/fd link.

A symlink itself has no mode to change: EOPNOTSUPP, as fchmodat2 says of AT_SYMLINK_NOFOLLOW on one.