{"record":{"id":"5051f2da3c345b38","repo":"openai/codex","slug":"path-contains-a-reparse-point","errorCode":null,"errorMessage":"path contains a reparse point","messagePattern":"path contains a reparse point","errorType":"validation","errorClass":"io::Error","httpStatus":null,"severity":"error","filePath":"codex-rs/exec-server/src/no_follow/windows.rs","lineNumber":176,"sourceCode":"    let mut handle = 0;\n    let status = unsafe {\n        NtCreateFile(\n            &mut handle,\n            desired_access | SYNCHRONIZE_ACCESS,\n            &object_attributes,\n            &mut io_status_block,\n            ptr::null(),\n            FILE_ATTRIBUTE_NORMAL,\n            FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE,\n            create_disposition,\n            create_options | FILE_SYNCHRONOUS_IO_NONALERT,\n            ptr::null(),\n            /*ea_length*/ 0,\n        )\n    };\n    if status < 0 {\n        if status == STATUS_REPARSE_POINT_ENCOUNTERED {\n            return Err(io::Error::new(\n                io::ErrorKind::InvalidInput,\n                \"path contains a reparse point\",\n            ));\n        }\n        let code = unsafe { RtlNtStatusToDosError(status) };\n        return Err(io::Error::from_raw_os_error(code as i32));\n    }\n    if handle == 0 || handle == INVALID_HANDLE_VALUE {\n        return Err(io::Error::other(\n            \"NtCreateFile returned an invalid filesystem handle\",\n        ));\n    }\n\n    Ok(unsafe { OwnedHandle::from_raw_handle(handle as RawHandle) })\n}\n\nfn open_entry(path: &Path) -> io::Result<std::fs::File> {\n    let handle = open_handle(","sourceCodeStart":158,"sourceCodeEnd":194,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/exec-server/src/no_follow/windows.rs#L158-L194","documentation":"Error \"path contains a reparse point\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/exec-server/src/no_follow/windows.rs:176 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"339751715c64496cb86246bfb3935f40e309dd3d","analyzedAt":"2026-08-25T05:35:09.876Z","schemaVersion":2},"datasetVersion":"2026-08-25T06:17:31.827Z"}