mirror of
https://github.com/openai/codex.git
synced 2026-10-23 18:08:45 +00:00
Remove the u64 cast from WSL DrvFS detection (#56214)
GitOrigin-RevId: 9298584c88089222fe61209b76641fa970555e1f
This commit is contained in:
@@ -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"))]
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user