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->name = estrdup(name);
|
||||||
part->filename = estrdup(file);
|
part->filename = estrdup(file);
|
||||||
if(readonly){
|
if(readonly){
|
||||||
mode &= (OREAD|OWRITE|ORDWR);
|
mode &= ~(OREAD|OWRITE|ORDWR);
|
||||||
mode |= OREAD;
|
mode |= OREAD;
|
||||||
}
|
}
|
||||||
#ifdef __linux__ /* sorry, but linus made O_DIRECT unusable! */
|
#ifdef __linux__ /* sorry, but linus made O_DIRECT unusable! */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue