Skip to main content

open_dir_component

Function open_dir_component 

Source
fn open_dir_component(dir: &OwnedFd, comp: &[u8]) -> Result<OwnedFd, i32>
Expand description

Opens the directory comp inside dir as an O_PATH descriptor.

ยงErrors

ELOOP when it is a symlink, ENOTDIR when it is anything else, ENOENT when it is missing, as openat2 reports them.