toops - plan9port - [fork] Plan 9 from user space
(HTM) git clone git://src.adamsgaard.dk/plan9port
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 786ce2cf5c62149e7abfd28c37d27d0df7f8aeac
(DIR) parent 91872ab97b7c9cabacef61f37b90a1af29f257af
(HTM) Author: rsc <devnull@localhost>
Date: Thu, 3 May 2007 03:14:34 +0000
oops
Diffstat:
M src/cmd/venti/srv/part.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/src/cmd/venti/srv/part.c b/src/cmd/venti/srv/part.c
t@@ -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! */