diff options
author | Michael I. Bushnell <mib@gnu.org> | 1994-02-04 19:10:51 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1994-02-04 19:10:51 +0000 |
commit | 18a6968b17b27201f5e4634c6e703dc1037ea1dc (patch) | |
tree | 319fe47dad1a0b13f788edc28065003690e493c6 | |
parent | c33f22a85856153a12e3a169c64d255a0e9c74d0 (diff) |
Formerly file-getlinknode.c.~3~
-rw-r--r-- | libdiskfs/file-getlinknode.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libdiskfs/file-getlinknode.c b/libdiskfs/file-getlinknode.c index 7d8bd352..8c10f62b 100644 --- a/libdiskfs/file-getlinknode.c +++ b/libdiskfs/file-getlinknode.c @@ -24,19 +24,19 @@ diskfs_S_file_getlinknode (struct protid *cred, file_t *port, mach_msg_type_name_t *portpoly) { - struct inode *np; + struct node *np; if (!cred) return EOPNOTSUPP; np = cred->po->np; - if (np->i_number == diskfs_root_node_number) + if (np == diskfs_root_node) return EBUSY; /* XXX -- this is wrong; port management code for protids only allows a port to be given out once; we need to send a new protid unfortunately. */ - *port = cred->fspt.pi.port; + *port = cred->pi.port; *portpoly = MACH_MSG_TYPE_MAKE_SEND; return 0; } |