mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-27 11:52:03 +00:00
oops
This commit is contained in:
parent
91872ab97b
commit
786ce2cf5c
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ initpart(char *name, int mode)
|
|||
part->name = estrdup(name);
|
||||
part->filename = estrdup(file);
|
||||
if(readonly){
|
||||
mode &= (OREAD|OWRITE|ORDWR);
|
||||
mode &= ~(OREAD|OWRITE|ORDWR);
|
||||
mode |= OREAD;
|
||||
}
|
||||
#ifdef __linux__ /* sorry, but linus made O_DIRECT unusable! */
|
||||
|
|
Loading…
Reference in a new issue