From 487bba2f0cd506b4a79e1d92184a5f80d827954f Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sat, 16 Jun 2001 20:23:09 +0000 Subject: 2001-04-01 Neal H Walfield * dir-lookup.c (diskfs_S_dir_lookup): Use iohelp_create_empty_iouser. * fsys-getfile.c (diskfs_S_fsys_getfile): Use iohelp_create_complex_iouser. * io-reauthenticate.c (diskfs_S_io_reauthenticate): Use new iohelp_reauth semantics. * io-restrict-auth.c (diskfs_S_io_restrict_auth): Use new iohelp_create_iouser semantics. * protid-make.c (diskfs_finish_protid): Use iohelp_create_simple_iouser and new iohelp_dup_iouse semantics. * trans-callback.c (_diskfs_translator_callback2_fn): Use iohelp_create_simple_iouser. --- libdiskfs/trans-callback.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'libdiskfs/trans-callback.c') diff --git a/libdiskfs/trans-callback.c b/libdiskfs/trans-callback.c index 5923d265..73d551c3 100644 --- a/libdiskfs/trans-callback.c +++ b/libdiskfs/trans-callback.c @@ -1,5 +1,5 @@ /* - Copyright (C) 1995, 96, 97, 98 Free Software Foundation, Inc. + Copyright (C) 1995,96,97,98,2001 Free Software Foundation, Inc. Written by Michael I. Bushnell. This file is part of the GNU Hurd. @@ -55,14 +55,12 @@ _diskfs_translator_callback2_fn (void *cookie1, void *cookie2, struct node *np = cookie1; 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 = iohelp_create_simple_iouser (&user, np->dn_stat.st_uid, + np->dn_stat.st_gid); + if (err) + return err; err = diskfs_create_protid (diskfs_make_peropen (np, flags, cookie2), -- cgit v1.2.3