diff options
author | Marcus Brinkmann <marcus@gnu.org> | 2001-03-28 18:06:38 +0000 |
---|---|---|
committer | Marcus Brinkmann <marcus@gnu.org> | 2001-03-28 18:06:38 +0000 |
commit | 50d29b8c6df6ab62be6a029175b6fa0f251ed305 (patch) | |
tree | 150c10f4160f89a2168af62b8cd7a12270f00a75 /libdiskfs/dir-lookup.c | |
parent | 5b8d267faf5a8291c6e239d2d18749d4426cb685 (diff) |
2001-03-28 Marcus Brinkmann <marcus@gnu.org>
* dir-lookup.c (diskfs_S_dir_lookup): New variable USER. Store new
iouser in that variable and free it after creating the protid for
DIRPORT.
* trans-callback.c (_diskfs_translator_callback2_fn): Likewise.
* io-restrict-auth.c (diskfs_S_io_restrict_auth): Likewise.
* io-reauthenticate.c (diskfs_S_io_reauthenticate): Likewise.
Diffstat (limited to 'libdiskfs/dir-lookup.c')
-rw-r--r-- | libdiskfs/dir-lookup.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libdiskfs/dir-lookup.c b/libdiskfs/dir-lookup.c index 489b4dd8..2cecc91d 100644 --- a/libdiskfs/dir-lookup.c +++ b/libdiskfs/dir-lookup.c @@ -209,6 +209,7 @@ diskfs_S_dir_lookup (struct protid *dircred, || fshelp_translated (&np->transbox))) { mach_port_t dirport; + struct iouser *user; /* A callback function for short-circuited translators. Symlink & ifsock are handled elsewhere. */ @@ -247,11 +248,12 @@ diskfs_S_dir_lookup (struct protid *dircred, /* Create an unauthenticated port for DNP, and then unlock it. */ + user = iohelp_create_iouser (make_idvec (), make_idvec ()); error = diskfs_create_protid (diskfs_make_peropen (dnp, 0, dircred->po), - iohelp_create_iouser (make_idvec (), - make_idvec ()), - &newpi); + user, &newpi); + iohelp_free_iouser (user); + if (error) goto out; |