This commit is contained in:
rsc 2007-05-03 03:14:34 +00:00
parent 91872ab97b
commit 786ce2cf5c

View file

@ -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! */