mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-09 22:49:57 +09:00
Maybe fix os.open
This commit is contained in:
@@ -121,10 +121,10 @@ pub fn os_open(
|
||||
};
|
||||
}
|
||||
|
||||
if bit_contains!(libc::O_RDWR) {
|
||||
options.read(true).write(true);
|
||||
} else if bit_contains!(libc::O_WRONLY) {
|
||||
if bit_contains!(libc::O_WRONLY) {
|
||||
options.write(true);
|
||||
} else if bit_contains!(libc::O_RDWR) {
|
||||
options.read(true).write(true);
|
||||
} else if bit_contains!(libc::O_RDONLY) {
|
||||
options.read(true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user