diff options
author | Michael I. Bushnell <mib@gnu.org> | 1994-02-04 21:04:13 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1994-02-04 21:04:13 +0000 |
commit | f7106f4d9428e0d9f4bdeae2bbd5d057e65be4a4 (patch) | |
tree | a10eda191826fa92e15c0899139b0247a742be0b /libdiskfs/io-modes-on.c | |
parent | c78bcfcb4784a8bc6c599e0f03736cffb774e59f (diff) |
Formerly io-modes-on.c.~3~
Diffstat (limited to 'libdiskfs/io-modes-on.c')
-rw-r--r-- | libdiskfs/io-modes-on.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libdiskfs/io-modes-on.c b/libdiskfs/io-modes-on.c index 4de10e61..67f76aef 100644 --- a/libdiskfs/io-modes-on.c +++ b/libdiskfs/io-modes-on.c @@ -17,6 +17,7 @@ #include "priv.h" #include "io_S.h" +#include <fcntl.h> /* Implement io_set_some_openmodes as described in <hurd/io.defs>. */ error_t @@ -26,10 +27,9 @@ diskfs_S_io_set_some_openmodes (struct protid *cred, if (!cred) return EOPNOTSUPP; - mutex_lock (&cred->po->ip->lock); - ioserver_get_conch (&np->conch); - if (!err) - cred->po->openstat |= (modes & HONORED_STATE_MODES); - mutex_unlock (&cred->po->ip->lock); - return err; + mutex_lock (&cred->po->np->lock); + ioserver_get_conch (&cred->po->np->conch); + cred->po->openstat |= (newbits & HONORED_STATE_MODES); + mutex_unlock (&cred->po->np->lock); + return 0; } |