oops, kinda fix a+?

This commit is contained in:
K. Lange 2018-07-17 19:44:15 +09:00
parent a161dbc998
commit 16905dc784

View File

@ -162,7 +162,7 @@ static void parse_mode(const char * mode, int * flags_, int * mask_) {
}
if (*x == '+') {
flags |= O_RDWR;
flags ^= (O_APPEND); /* uh... */
flags &= ~(O_APPEND); /* uh... */
}
++x;
}