diff options
author | rsc <devnull@localhost> | 2007-05-03 03:14:34 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2007-05-03 03:14:34 +0000 |
commit | 786ce2cf5c62149e7abfd28c37d27d0df7f8aeac (patch) | |
tree | 9a555ded481401517a51a24d87b01a823f5aa7af /src/cmd | |
parent | 91872ab97b7c9cabacef61f37b90a1af29f257af (diff) | |
download | plan9port-786ce2cf5c62149e7abfd28c37d27d0df7f8aeac.tar.gz plan9port-786ce2cf5c62149e7abfd28c37d27d0df7f8aeac.tar.bz2 plan9port-786ce2cf5c62149e7abfd28c37d27d0df7f8aeac.zip |
oops
Diffstat (limited to 'src/cmd')
-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! */ |