From 0d17dcfc272f9fd69549514d066fc18c9713649e Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 28 May 2002 23:58:13 +0000 Subject: 2002-05-28 Roland McGrath * dir-readdir.c (trivfs_S_dir_readdir): u_int -> size_t * file-get-trans.c (trivfs_S_file_get_translator): Likewise. * file-set-trans.c (trivfs_S_file_set_translator): Likewise. * file-getfh.c (trivfs_S_file_getfh): Likewise. * fsys-getroot.c (trivfs_S_fsys_getroot): Likewise. * io-restrict-auth.c (trivfs_S_io_restrict_auth): Likewise * fsys-stubs.c (trivfs_S_fsys_getfile): Likewise. (trivfs_S_fsys_startup): Fix argument type. --- libtrivfs/io-restrict-auth.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'libtrivfs/io-restrict-auth.c') diff --git a/libtrivfs/io-restrict-auth.c b/libtrivfs/io-restrict-auth.c index 9ff6168e..b9a0598d 100644 --- a/libtrivfs/io-restrict-auth.c +++ b/libtrivfs/io-restrict-auth.c @@ -1,5 +1,5 @@ /* - Copyright (C) 1993,94,95,96,2001 Free Software Foundation + Copyright (C) 1993,94,95,96,2001,02 Free Software Foundation, Inc. This file is part of the GNU Hurd. @@ -8,7 +8,7 @@ it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. -The GNU Hurd is distributed in the hope that it will be useful, +The GNU Hurd is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. @@ -40,18 +40,18 @@ trivfs_S_io_restrict_auth (struct trivfs_protid *cred, mach_msg_type_name_t replytype, mach_port_t *newport, mach_msg_type_name_t *newporttype, - uid_t *uids, u_int nuids, - uid_t *gids, u_int ngids) + uid_t *uids, size_t nuids, + uid_t *gids, size_t ngids) { int i; error_t err; struct trivfs_protid *newcred; struct idvec *uvec, *gvec; struct iouser *user; - + if (!cred) return EOPNOTSUPP; - + if (cred->isroot) /* CRED has root access, and so may use any ids. */ { @@ -101,7 +101,7 @@ trivfs_S_io_restrict_auth (struct trivfs_protid *cred, err = ports_create_port (cred->po->cntl->protid_class, cred->po->cntl->protid_bucket, - sizeof (struct trivfs_protid), + sizeof (struct trivfs_protid), &newcred); if (err) { @@ -119,8 +119,8 @@ trivfs_S_io_restrict_auth (struct trivfs_protid *cred, newcred->user = user; newcred->hook = cred->hook; - err = io_restrict_auth (cred->realnode, &newcred->realnode, - user->uids->ids, user->uids->num, + err = io_restrict_auth (cred->realnode, &newcred->realnode, + user->uids->ids, user->uids->num, user->gids->ids, user->gids->num); if (!err && trivfs_protid_create_hook) { -- cgit v1.2.3