mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-29 03:04:38 +08:00
Fix os_open
This commit is contained in:
1 parent
46c91414ad
commit
dd9bece293
1 file changed
+3
@@ -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