oops
This commit is contained in:
parent
91872ab97b
commit
786ce2cf5c
@ -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…
Reference in New Issue
Block a user