A few I/O related fixes

This commit is contained in:
jD91mZM2
2018-09-23 17:28:42 +02:00
parent 1e9dbfdf62
commit 658dc34d30
4 changed files with 28 additions and 7 deletions
+1 -2
View File
@@ -30,8 +30,7 @@ pub unsafe fn parse_mode_flags(mode_str: *const c_char) -> i32 {
}
if (*mode_str) == b'w' as i8 {
flags |= O_TRUNC;
}
if (*mode_str) != b'a' as i8 {
} else if (*mode_str) == b'a' as i8 {
flags |= O_APPEND;
}