From 50d29b8c6df6ab62be6a029175b6fa0f251ed305 Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Wed, 28 Mar 2001 18:06:38 +0000 Subject: 2001-03-28 Marcus Brinkmann * 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. --- libdiskfs/trans-callback.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'libdiskfs/trans-callback.c') diff --git a/libdiskfs/trans-callback.c b/libdiskfs/trans-callback.c index 43492d6e..5923d265 100644 --- a/libdiskfs/trans-callback.c +++ b/libdiskfs/trans-callback.c @@ -56,15 +56,19 @@ _diskfs_translator_callback2_fn (void *cookie1, void *cookie2, struct protid *cred; error_t err; struct idvec *uids, *gids; + struct iouser *user; uids = make_idvec (); gids = make_idvec (); idvec_set_ids (uids, &np->dn_stat.st_uid, 1); idvec_set_ids (gids, &np->dn_stat.st_gid, 1); + user = iohelp_create_iouser (uids, gids); err = diskfs_create_protid (diskfs_make_peropen (np, flags, cookie2), - iohelp_create_iouser (uids, gids), &cred); + user, &cred); + + iohelp_free_iouser (user); if (! err) { *underlying = ports_get_right (cred); -- cgit v1.2.3