From 0a746fb19a663f41794f4c6ed6e63d4c5ce714b4 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sat, 16 Jun 2001 20:23:29 +0000 Subject: 2001-04-01 Neal H Walfield * dir-lookup.c (netfs_S_dir_lookup): Use iohelp_create_empty_iouser. Use iohelp_dup_iouser as per the new semantics. * dir-mkfile.c (netfs_S_dir_mkfile): Use iohelp_dup_iouser as per the new semantics. * file-exec.c (netfs_S_file_exec): Likewise. * file-reparent.c (netfs_S_file_reparent): Likewise. * fsys-getroot.c (netfs_S_fsys_getroot): Use iohelp_create_complex_iouser. * fsys-syncfs.c (netfs_S_fsys_syncfs): Use iohelp_create_simple_iouser. * io-duplicate.c (netfs_S_io_duplicate): Use iohelp_dup_iouser as per the new semantics. * io-reauthenticate.c (netfs_S_io_reauthenticate): Use iohelp_reauth as per the new semantics. * io-restric-auth.c (netfs_S_io_restric_auth): Use iohelp_create_complex_iouser. Check return values. * trans-callback.c (_netfs_transcallback2_fn): Use iohelp_create_simple_iouser. --- libnetfs/fsys-getroot.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'libnetfs/fsys-getroot.c') diff --git a/libnetfs/fsys-getroot.c b/libnetfs/fsys-getroot.c index 7572843c..247ef62a 100644 --- a/libnetfs/fsys-getroot.c +++ b/libnetfs/fsys-getroot.c @@ -43,19 +43,15 @@ netfs_S_fsys_getroot (mach_port_t cntl, error_t err; struct protid *newpi; mode_t type; - struct idvec *uvec, *gvec; struct peropen peropen_context = { root_parent: dotdot }; if (!pt) return EOPNOTSUPP; ports_port_deref (pt); - uvec = make_idvec (); - gvec = make_idvec (); - idvec_set_ids (uvec, uids, nuids); - idvec_set_ids (gvec, gids, ngids); - - cred = iohelp_create_iouser (uvec, gvec); + err = iohelp_create_complex_iouser (&cred, uids, nuids, gids, ngids); + if (err) + return err; flags &= O_HURD; -- cgit v1.2.3