diff options
-rw-r--r-- | src/cmd/venti/srv/part.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/venti/srv/part.c b/src/cmd/venti/srv/part.c index 59dd5492..fd614776 100644 --- a/src/cmd/venti/srv/part.c +++ b/src/cmd/venti/srv/part.c @@ -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! */ |