openai/codex · error · io::Error

no-follow filesystem operations require an absolute path

Error message

no-follow filesystem operations require an absolute path

What it means

Error "no-follow filesystem operations require an absolute path" thrown in openai/codex.

Source

Thrown at codex-rs/exec-server/src/no_follow/unix.rs:43

#[cfg(any(target_os = "linux", target_os = "android"))]
fn directory_access_flags() -> OFlags {
    OFlags::PATH
}

#[cfg(target_vendor = "apple")]
fn directory_access_flags() -> OFlags {
    OFlags::from_bits_retain(libc::O_SEARCH as u32)
}

#[cfg(not(any(target_os = "linux", target_os = "android", target_vendor = "apple")))]
fn directory_access_flags() -> OFlags {
    OFlags::RDONLY
}

fn components(path: &Path) -> io::Result<Vec<OsString>> {
    if !path.is_absolute() {
        return Err(io::Error::new(
            io::ErrorKind::InvalidInput,
            "no-follow filesystem operations require an absolute path",
        ));
    }
    path.components()
        .filter_map(|component| match component {
            Component::RootDir => None,
            Component::Normal(component) => Some(Ok(component.to_os_string())),
            Component::CurDir | Component::ParentDir | Component::Prefix(_) => {
                Some(Err(io::Error::new(
                    io::ErrorKind::InvalidInput,
                    "no-follow filesystem operations require a normalized path",
                )))
            }
        })
        .collect()
}

View on GitHub (pinned to 339751715c)

Solutions

  1. Pass an absolute path for no-follow filesystem operations.

When it happens

Trigger: Thrown at codex-rs/exec-server/src/no_follow/unix.rs:43 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of openai/codex@339751715c (2026-08-25). Data as JSON: /api/errors/1fd2a44a8445140d. Report an issue: GitHub.