diff options
author | Michael I. Bushnell <mib@gnu.org> | 1996-05-14 18:36:52 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1996-05-14 18:36:52 +0000 |
commit | 5b750de47f1f1b326349a77da332c58bb6b18c48 (patch) | |
tree | 5cb76459e4e9b80cf2bb4e6a3563f79fb85a5d22 /libnetfs/io-identity.c | |
parent | 4866cde1e5d4cb2be942da62191f6bcaa852ca45 (diff) |
(netfs_S_io_identity): fixup
Diffstat (limited to 'libnetfs/io-identity.c')
-rw-r--r-- | libnetfs/io-identity.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libnetfs/io-identity.c b/libnetfs/io-identity.c index 7e61984e..ffd941ed 100644 --- a/libnetfs/io-identity.c +++ b/libnetfs/io-identity.c @@ -49,11 +49,18 @@ netfs_S_io_identity (struct protid *cred, } } + err = netfs_validate_stat (np, cred->credential); + if (err) + { + mutex_unlock (&np->lock); + return err; + } + *id = np->identity; *idtype = MACH_MSG_TYPE_MAKE_SEND; *fsys = netfs_fsys_identity; *fsystype = MACH_MSG_TYPE_MAKE_SEND; - *fileno = np->dn_stat.st_ino; + *fileno = np->nn_stat.st_ino; mutex_unlock (&np->lock); return 0; |