diff options
author | Roland McGrath <roland@gnu.org> | 2001-06-16 20:21:47 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2001-06-16 20:21:47 +0000 |
commit | 93054f14cb52bfd576e4ecfdcf0bc1c468e4cbbf (patch) | |
tree | ee9c2bd4a038dab7f42a7107bcd7b0740f14fc2a /libtrivfs/fsys-getroot.c | |
parent | 17d01fc816b86f11aa4c82b47ba9aba98463e7e8 (diff) |
2001-04-01 Neal H Walfield <neal@cs.uml.edu>
* dir-lookup.c (trivfs_S_dir_lookup): Use
iohelp_dup_iouser as per the new semantics.
* fsys-getroot.c (trivfs_S_fsys_getroot): Use
iohelp_create_complex_iouser.
* io-reauthenticate.c (trivfs_S_io_reauthenticate):
Use iohelp_reauth as per the new semantics.
* io-restrict-auth.c (trivfs_S_io_restrict_auth):
Use iohelp_create_complex_iouser. Check return values.
* trivfs_protid_dup (trivfs_protid_dup): Use iohelp_dup_iouser
as per the new semantics.
Diffstat (limited to 'libtrivfs/fsys-getroot.c')
-rw-r--r-- | libtrivfs/fsys-getroot.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/libtrivfs/fsys-getroot.c b/libtrivfs/fsys-getroot.c index d91b9fa8..90a93d13 100644 --- a/libtrivfs/fsys-getroot.c +++ b/libtrivfs/fsys-getroot.c @@ -44,7 +44,6 @@ trivfs_S_fsys_getroot (struct trivfs_control *cntl, mach_port_t new_realnode; struct trivfs_protid *cred; struct iouser *user; - struct idvec *uvec, *gvec; if (!cntl) return EOPNOTSUPP; @@ -75,11 +74,9 @@ trivfs_S_fsys_getroot (struct trivfs_control *cntl, if (err) return err; - uvec = make_idvec (); - gvec = make_idvec (); - idvec_set_ids (uvec, uids, nuids); - idvec_set_ids (gvec, gids, ngids); - user = iohelp_create_iouser (uvec, gvec); /* XXX check return value? */ + err = iohelp_create_complex_iouser (&user, uids, nuids, gids, ngids); + if (err) + return err; /* Validate permissions. */ if (! trivfs_check_access_hook) |