mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-09 22:49:57 +09:00
Fix os_open
This commit is contained in:
@@ -141,6 +141,9 @@ pub fn os_open(
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(windows)]
|
||||
let flags = flags & !(libc::O_WRONLY as u32);
|
||||
|
||||
options.custom_flags(flags);
|
||||
let handle = options
|
||||
.open(fname.as_str())
|
||||
|
||||
Reference in New Issue
Block a user