diff options
author | Michael I. Bushnell <mib@gnu.org> | 1994-06-16 02:08:11 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1994-06-16 02:08:11 +0000 |
commit | 0fe910a873b191aad472c794338adcb71cfbad69 (patch) | |
tree | 2090490313c61b206e1d6ab8d4ef1f52001cccdf /libdiskfs/io-modes-set.c | |
parent | 47ff61be95325dd4e642fd1fb9cc9de11d84aeb8 (diff) |
entered into RCS
Diffstat (limited to 'libdiskfs/io-modes-set.c')
-rw-r--r-- | libdiskfs/io-modes-set.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libdiskfs/io-modes-set.c b/libdiskfs/io-modes-set.c index 5de51e52..6ecaa6fc 100644 --- a/libdiskfs/io-modes-set.c +++ b/libdiskfs/io-modes-set.c @@ -29,7 +29,8 @@ diskfs_S_io_set_all_openmodes (struct protid *cred, mutex_lock (&cred->po->np->lock); ioserver_get_conch (&cred->po->np->conch); - cred->po->openstat = (newbits & HONORED_STATE_MODES); + cred->po->openstat &= ~HONORED_STATE_MODES; + cred->po->openstat |= (newbits & HONORED_STATE_MODES); mutex_unlock (&cred->po->np->lock); return 0; } |