Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

Remove the `u64` cast from WSL DrvFS detection (#56214)

felixxia-oaibe537fb60c96
diff --git a/codex-rs/tui/src/daemon_startup.rs b/codex-rs/tui/src/daemon_startup.rs
index f4be842174..6c7dca5074 100644
--- a/codex-rs/tui/src/daemon_startup.rs
+++ b/codex-rs/tui/src/daemon_startup.rs
@@ -39,7 +39,7 @@ pub fn uses_wsl_drvfs(codex_home: &std::path::Path) -> bool {
if unsafe { libc::fstatfs(directory.as_raw_fd(), stats.as_mut_ptr()) } != 0 {
return false;
}
- unsafe { stats.assume_init() }.f_type as u64 == 0x0102_1997
+ unsafe { stats.assume_init() }.f_type == 0x0102_1997
}
#[cfg(not(target_os = "linux"))]
{