diff options
Diffstat (limited to 'libdiskfs')
-rw-r--r-- | libdiskfs/ChangeLog | 6 | ||||
-rw-r--r-- | libdiskfs/protid-make.c | 7 |
2 files changed, 11 insertions, 2 deletions
diff --git a/libdiskfs/ChangeLog b/libdiskfs/ChangeLog index b24ffc8f..89e81313 100644 --- a/libdiskfs/ChangeLog +++ b/libdiskfs/ChangeLog @@ -1,3 +1,9 @@ +Thu Jul 18 23:05:56 1996 Michael I. Bushnell, p/BSG <mib@gnu.ai.mit.edu> + + * protid-make.c (diskfs_start_protid): Use noinstall version of + ports_create_port. + (diskfs_finish_protid): Install port right into port set here. + Mon Jul 15 21:37:12 1996 Michael I. Bushnell, p/BSG <mib@gnu.ai.mit.edu> * diskfs.h (diskfs_checkdirmod): diskfs_isowner returns error or diff --git a/libdiskfs/protid-make.c b/libdiskfs/protid-make.c index 2921f569..c67bd41b 100644 --- a/libdiskfs/protid-make.c +++ b/libdiskfs/protid-make.c @@ -24,8 +24,8 @@ error_t diskfs_start_protid (struct peropen *po, struct protid **cred) { error_t err = - ports_create_port (diskfs_protid_class, diskfs_port_bucket, - sizeof (struct protid), cred); + ports_create_port_noinstall (diskfs_protid_class, diskfs_port_bucket, + sizeof (struct protid), cred); if (! err) { po->refcnt++; @@ -61,6 +61,9 @@ diskfs_finish_protid (struct protid *cred, uid_t *uids, int nuids, bcopy (gids, cred->gids, ngids * sizeof (uid_t)); else *cred->gids = 0; + + mach_port_move_member (mach_task_self (), cred->pi.port_right, + diskfs_port_bucket->portset); } /* Create and return a protid for an existing peropen PO in CRED. The uid |