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/trans-callback.c | |
parent | 5b8d267faf5a8291c6e239d2d18749d4426cb685 (diff) | |
download | hurd-50d29b8c6df6ab62be6a029175b6fa0f251ed305.tar.gz hurd-50d29b8c6df6ab62be6a029175b6fa0f251ed305.tar.bz2 hurd-50d29b8c6df6ab62be6a029175b6fa0f251ed305.zip |
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/trans-callback.c')
-rw-r--r-- | libdiskfs/trans-callback.c | 6 |
1 files changed, 5 insertions, 1 deletions
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); |